[rspec-users] undefined method `assert_select'

2009-05-22 Thread Sarah Allen
I'm having trouble getting the specs to run for a plugin where I want to fix a bug. (I've actually already found and fixed the bug, but I don't want to submit a fix without a test!) When I started the specs weren't running, but it may be that I'm using Rails 2.3.3 and the plugin has been tested on

Re: [rspec-users] RSpec for Rails plugin

2009-05-22 Thread Sarah Allen
David Chelimsky wrote: > Check out Pat's rspec plugin generator: > > http://github.com/pat-maddox/rspec-plugin-generator/tree/master Hey thanks. That sounds like just the thing, but I'm kind of new to this stuff. I guessed where to put it and it seemed to work so far. I'm adding notes as I go

Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-22 Thread Scott Taylor
Ben Johnson wrote: Did anyone ever figure out the factory_girl / machinist issues? I am having the same problems and can figure out how to fix it for the life of me. The first run works fine, then afterwards I get a bunch of these errors: No blueprint for class Venue Any ideas? Thanks! I

Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-22 Thread Scott Taylor
Ben Johnson wrote: Did anyone ever figure out the factory_girl / machinist issues? I am having the same problems and can figure out how to fix it for the life of me. The first run works fine, then afterwards I get a bunch of these errors: No blueprint for class Venue Any ideas? Thanks!

Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-22 Thread Ben Johnson
Did anyone ever figure out the factory_girl / machinist issues? I am having the same problems and can figure out how to fix it for the life of me. The first run works fine, then afterwards I get a bunch of these errors: No blueprint for class Venue Any ideas? Thanks! -- Posted via http://www.

Re: [rspec-users] Cucumber: Running one feature under one profile

2009-05-22 Thread aslak hellesoy
> aslak hellesoy wrote: >>> >>> Hey Folks, >>> >>> >> >> Aargh profiles. The initial intention was that you could just do >> cucumber -p foo. >> And then you wouldn't have to type a lot of arguments. >> >> The intention was *not* to use -p along with additional arguments, >> although cucumber lets

Re: [rspec-users] Cucumber: Running one feature under one profile

2009-05-22 Thread Ben Mabey
aslak hellesoy wrote: Hey Folks, Aargh profiles. The initial intention was that you could just do cucumber -p foo. And then you wouldn't have to type a lot of arguments. The intention was *not* to use -p along with additional arguments, although cucumber lets you do it by merging stuff t

Re: [rspec-users] Latest cucumber 0.3.6 + rspec >1.2.2 broken?

2009-05-22 Thread aslak hellesoy
> Hi all, > > It looks like the following line was removed from "/lib/spec/ > expectations.rb" on April 11: > > attr_accessor :differ > > When I try to use cucumber (version 0.3.6), it tries to > call ::Spec:Expectations.differ= and fails.  There does not seem to be The actual command, error messa

Re: [rspec-users] Cucumber: Running one feature under one profile

2009-05-22 Thread aslak hellesoy
> Hey Folks, > Aargh profiles. The initial intention was that you could just do cucumber -p foo. And then you wouldn't have to type a lot of arguments. The intention was *not* to use -p along with additional arguments, although cucumber lets you do it by merging stuff together. Using profiles as

Re: [rspec-users] Latest cucumber 0.3.6 + rspec >1.2.2 broken?

2009-05-22 Thread David Chelimsky
On Fri, May 22, 2009 at 8:26 AM, Ari wrote: > Hi all, > > It looks like the following line was removed from "/lib/spec/ > expectations.rb" on April 11: > > attr_accessor :differ > > When I try to use cucumber (version 0.3.6), it tries to > call ::Spec:Expectations.differ= and fails.  There does no

[rspec-users] Cucumber: Running one feature under one profile

2009-05-22 Thread JohnnyH
Hey Folks, I followed the instructions on http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium and created 2 profiles: default and selenium. It works, but not if I want to run one feature under a specifc profile. For example, I tried: cucumber -p default --require features features/

[rspec-users] Latest cucumber 0.3.6 + rspec >1.2.2 broken?

2009-05-22 Thread Ari
Hi all, It looks like the following line was removed from "/lib/spec/ expectations.rb" on April 11: attr_accessor :differ When I try to use cucumber (version 0.3.6), it tries to call ::Spec:Expectations.differ= and fails. There does not seem to be anything in the history regarding the removal/d

Re: [rspec-users] passing param values

2009-05-22 Thread Diwakar, ANGLER - EIT
Still I am getting the same error describe UsersController do describe :create do before(:each) do controller.stub!(:require_user).and_return(@user) controller.stub!(:uses_mailer).and_return(@user) User.stub!(:new).and_return(@user) post :create,{:terms_and_c

Re: [rspec-users] Troble running controller spec

2009-05-22 Thread David Chelimsky
On Fri, May 22, 2009 at 1:41 AM, Amit Kulkarni wrote: > Hi, > >    I am trying to execute controller spec by referring to RSpec book > but it is diving me error. > > Following are the details: > Ruby version : 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] > rspec - 1.2.4 > rails - 2.1.2 > OS - Vi

Re: [rspec-users] passing param values

2009-05-22 Thread David Chelimsky
On Fri, May 22, 2009 at 4:34 AM, Diwakar, ANGLER - EIT wrote: > My controller spec is like below > > describe UsersController do > >  describe " create action" do >   before(:each)  do >     @user = mock_model(User,:user => "value") #don't need to set the user in this @user = mock_model(User) >

[rspec-users] passing param values

2009-05-22 Thread Diwakar, ANGLER - EIT
My controller spec is like below describe UsersController do describe " create action" do before(:each) do @user = mock_model(User,:user => "value") controller.stub!(:require_user).and_return(@user) controller.stub!(:uses_mailer).and_return(@user) User.stub!(:new).and_return

[rspec-users] Troble running controller spec

2009-05-22 Thread Amit Kulkarni
Hi, I am trying to execute controller spec by referring to RSpec book but it is diving me error. Following are the details: Ruby version : 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] rspec - 1.2.4 rails - 2.1.2 OS - Vista Home My channels_controller_spec.rb(which is under rootproject/spec