Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-06 Thread Mischa Fierer
this may help: http://themomorohoax.com/2008/12/17/rails-2-3-tests On Wed, Jan 7, 2009 at 12:29 AM, waseem ahmad wrote: > Hi, > > I get this error when I do > > $spec /spec/any_spec > > /home/waseem/app/spec/spec_helper.rb:14: undefined method > `use_transactional_fixtures=' for # > (NoMeth

[rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-06 Thread waseem ahmad
Hi, I get this error when I do $spec /spec/any_spec /home/waseem/app/spec/spec_helper.rb:14: undefined method `use_transactional_fixtures=' for # (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:184:in `configure' from /home/waseem/app/spec/spec_helper

[rspec-users] Fixing "expected success? to return true, got false"

2009-01-06 Thread Mark A. Richman
I am trying to get the following test to pass, and get this error. Since I'm only on day 4 of rspec, I'm sure I'm missing something simple. Any ideas? ## rake spec 'PatientsController GET 'new' should be successful' FAILED expected success? to return true, got false ./spec/controllers/patients_co

Re: [rspec-users] Cucumber: acceptance testing OAuth

2009-01-06 Thread Matt Wynne
On 6 Jan 2009, at 23:29, Ben Mabey wrote: On 1/6/09 4:08 PM, Matt Wynne wrote: Hi, We're adding OAuth support for our API, and I paired with the guy who's spiked it today to try and write some features to drive out the behaviour we need. It ended up getting quite tricky, so if you don't

Re: [rspec-users] cucumber, finding a row in a table

2009-01-06 Thread Zach Dennis
On Tue, Jan 6, 2009 at 4:08 PM, James Byrne wrote: > Zach Dennis wrote: >> >> Does your outputted HTML properly include a tbody in the table? If so >> the selector you are using won't work. You would need to make match >> any descendant rather than any direct child, ie: "table >> tr#entity_id_1"

Re: [rspec-users] Cucumber: acceptance testing OAuth

2009-01-06 Thread Ben Mabey
On 1/6/09 4:08 PM, Matt Wynne wrote: Hi, We're adding OAuth support for our API, and I paired with the guy who's spiked it today to try and write some features to drive out the behaviour we need. It ended up getting quite tricky, so if you don't mind I'd like to bounce my ideas of this list

[rspec-users] Cucumber: acceptance testing OAuth

2009-01-06 Thread Matt Wynne
Hi, We're adding OAuth support for our API, and I paired with the guy who's spiked it today to try and write some features to drive out the behaviour we need. It ended up getting quite tricky, so if you don't mind I'd like to bounce my ideas of this list and see what you think. The spik

Re: [rspec-users] cucumber, finding a row in a table

2009-01-06 Thread James Byrne
Zach Dennis wrote: > > Does your outputted HTML properly include a tbody in the table? If so > the selector you are using won't work. You would need to make match > any descendant rather than any direct child, ie: "table > tr#entity_id_1" > I cannot find one if there is. > On a related note (a

Re: [rspec-users] Help with controller spec?

2009-01-06 Thread Stephen Eley
On Tue, Jan 6, 2009 at 1:24 PM, David Chelimsky wrote: > > I'd refine that a bit: learn both and decide *when to apply each*. > > Choosing one style over the other limits your toolbox and consequently > your ability to operate in different contexts. True, and good point. -- Have Fun, Steve

Re: [rspec-users] Help with controller spec?

2009-01-06 Thread Matt Darby
On Jan 6, 2009, at 1:16 PM, Stephen Eley wrote: On Tue, Jan 6, 2009 at 10:53 AM, Matt Darby wrote: I'm stumped. How would I go about specing the "update_sandbox" method? I couldn't hope to compete with David's answer when it comes to specifics, but more generally, it occurs to me that your

Re: [rspec-users] Help with controller spec?

2009-01-06 Thread David Chelimsky
On Tue, Jan 6, 2009 at 12:16 PM, Stephen Eley wrote: > On Tue, Jan 6, 2009 at 10:53 AM, Matt Darby wrote: >> I'm stumped. How would I go about specing the "update_sandbox" method? > > I couldn't hope to compete with David's answer when it comes to > specifics, but more generally, it occurs to me

Re: [rspec-users] Help with controller spec?

2009-01-06 Thread Stephen Eley
On Tue, Jan 6, 2009 at 10:53 AM, Matt Darby wrote: > I'm stumped. How would I go about specing the "update_sandbox" method? I couldn't hope to compete with David's answer when it comes to specifics, but more generally, it occurs to me that your question is a little imprecise and that could point

Re: [rspec-users] Help with controller spec?

2009-01-06 Thread David Chelimsky
On Tue, Jan 6, 2009 at 10:41 AM, Matt Darby wrote: > On Jan 6, 2009, at 11:27 AM, David Chelimsky wrote: > >> On Tue, Jan 6, 2009 at 9:53 AM, Matt Darby wrote: >>> >>> I'm stumped. How would I go about specing the "update_sandbox" method? >>> # bids_controller: >>> def new >>> @bid = Bid.new >

Re: [rspec-users] rack app to browse specs

2009-01-06 Thread Joaquin Rivera Padron
hello there, I've added support to browse/run cucumber features to the app, check it out in gist: http://gist.github.com/43149 right now you can: browse your spec/ and features/ directory run specs and feature files living there. it is only a .rb script to put into spec (or features) directory I

Re: [rspec-users] Help with controller spec?

2009-01-06 Thread Matt Darby
On Jan 6, 2009, at 11:27 AM, David Chelimsky wrote: On Tue, Jan 6, 2009 at 9:53 AM, Matt Darby wrote: I'm stumped. How would I go about specing the "update_sandbox" method? # bids_controller: def new @bid = Bid.new respond_to do |wants| wants.html { redirect_to job_bids_path(@j

Re: [rspec-users] Help with controller spec?

2009-01-06 Thread David Chelimsky
On Tue, Jan 6, 2009 at 9:53 AM, Matt Darby wrote: > I'm stumped. How would I go about specing the "update_sandbox" method? > # bids_controller: > def new > @bid = Bid.new > > respond_to do |wants| > wants.html { redirect_to job_bids_path(@job) } > wants.js { > update_

[rspec-users] Help with controller spec?

2009-01-06 Thread Matt Darby
I'm stumped. How would I go about specing the "update_sandbox" method? # bids_controller: def new @bid = Bid.new respond_to do |wants| wants.html { redirect_to job_bids_path(@job) } wants.js { update_sandbox do render_to_string :partial => 'new', :locals =

Re: [rspec-users] Rspec Rails high overhead

2009-01-06 Thread Matt Wynne
On 6 Jan 2009, at 13:02, aslak hellesoy wrote: On Tue, Jan 6, 2009 at 4:29 AM, Reza Primardiansyah > wrote: Aslak, The best time I get is 6.3 seconds. I'm using "time script/server" command and hitting Ctrl-C immediately after I see "** Use CTRL-C to stop." Ok, so you have 5 seconds of

Re: [rspec-users] Rspec Rails high overhead

2009-01-06 Thread aslak hellesoy
On Tue, Jan 6, 2009 at 4:29 AM, Reza Primardiansyah < reza.primardians...@gmail.com> wrote: > Aslak, > The best time I get is 6.3 seconds. I'm using "time script/server" command > and hitting Ctrl-C immediately after I see "** Use CTRL-C to stop." > Ok, so you have 5 seconds of additional overhea

Re: [rspec-users] options:229 error

2009-01-06 Thread David Chelimsky
On Tue, Jan 6, 2009 at 2:47 AM, Ivor Paul wrote: > Hi Guys > > I am really having incredible issues with this error > > i...@theluggage:~/workspace/talkies$ rake db:migrate > (in /home/ivor/workspace/talkies) > /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in > `files_to_

Re: [rspec-users] options:229 error

2009-01-06 Thread Scott Taylor
Ivor Paul wrote: Hi Guys I am really having incredible issues with this error i...@theluggage:~/workspace/talkies$ rake db:migrate (in /home/ivor/workspace/talkies) /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in `files_to_load': File or directory not found: db:migra

Re: [rspec-users] options:229 error

2009-01-06 Thread Scott Taylor
Ivor Paul wrote: Hi Guys I am really having incredible issues with this error i...@theluggage:~/workspace/talkies$ rake db:migrate (in /home/ivor/workspace/talkies) /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in `files_to_load': File or directory not found: db:migra

[rspec-users] options:229 error

2009-01-06 Thread Ivor Paul
Hi Guys I am really having incredible issues with this error i...@theluggage:~/workspace/talkies$ rake db:migrate (in /home/ivor/workspace/talkies) /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in `files_to_load': File or directory not found: db:migrate (RuntimeError)