[rspec-users] Why won't my simple controller spec pass?

2009-05-14 Thread Lee
I have been trying to spec a Rails Controller for the first time, having just completed my first View spec. Having hit a wall trying to spec a controller for my own application, I have tried to get an example in beta of The RSpec Book to work. I am however experiencing the same failures. I would a

[rspec-users] [Cucumber] ANN: Cucumber 0.3.5

2009-05-14 Thread aslak hellesoy
http://github.com/aslakhellesoy/cucumber/blob/20021e90c892030c1a1b46e2d19024c3719af0ba/History.txt Thanks Joseph! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-14 Thread Luke Melia
I'm trying to make sure that my cucumber selenium suite fails if my Rails app returns any 500 response codes. I'm working on what the best way to identify this state, but the question I'd like to put to the list is this: If I want to check for this error condition in an After or AfterStep,

Re: [rspec-users] How to test update_attribute with mocha?

2009-05-14 Thread Matt Wynne
On 14 May 2009, at 14:20, Phlip wrote: Matt Wynne wrote: I've got a reason. You're coupling the tests for this simple little controller class to all the infrastructure and dependencies needed to write the record to the database and reload it again. As easy as Rails makes it for us to man

Re: [rspec-users] Unable to post to an update action in a controller spec

2009-05-14 Thread Zach Dennis
On Thu, May 14, 2009 at 6:23 AM, Fernando Perez wrote: >> put :update, :item => 1 etc. >> > I tried that but didn't work. I managed to get it working by simply > doing: > > post :update, {:id => 'dummy', :item => {'1' => ...}} > > For some reason, I previously tried with :id => 'update' but Rails

Re: [rspec-users] Cucumber Tables

2009-05-14 Thread James Byrne
Aslak Hellesøy wrote: > > If you don't do this, the multiline argument is "dangling". Steps that > take multiline arguments should be formulated in such a way that > removing the multiline argument makes the sentence nonsensical. Yes, I understood that. And I also realized that the solution is

[rspec-users] Problem with RSpec and Cucumber

2009-05-14 Thread A. Kueken
Hello everybody, I have a problem get cucumber running properly. Runnink jruby -S rake features ends with: /Users/alexander/lib/jruby/bin/jruby -I "/Users/alexander/lib/ jruby-1.3.0RC1/lib/ruby/gems/1.8/gems/cucumber-0.3.3/lib:lib" "/Users/ alexander/lib/jruby-1.3.0RC1/lib/ruby/gems/1.8/gems/cucu

Re: [rspec-users] [Cucumber] ANN: Cucumber 0.3.4

2009-05-14 Thread Julian Leviston
On 15/05/2009, at 12:48 AM, aslak hellesoy wrote: http://github.com/aslakhellesoy/cucumber/blob/173506c4013a7d733c5b4924e7af3dcc49db2218/History.txt Enjoy! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/r

[rspec-users] [Cucumber] ANN: Cucumber 0.3.4

2009-05-14 Thread aslak hellesoy
http://github.com/aslakhellesoy/cucumber/blob/173506c4013a7d733c5b4924e7af3dcc49db2218/History.txt Enjoy! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [Rspec] Problems with autospec

2009-05-14 Thread David Chelimsky
On Thu, May 14, 2009 at 7:51 AM, Hugo Barauna wrote: > Hi guys, I am having a problem with autospec. I upgraded to > rspec-1.2.6, then I tried to run my specs with autospec. All my specs > passes (green), until here, that's all ok. The problem is that after > all my specs have passed, the autospec

[rspec-users] [Rspec] Problems with autospec

2009-05-14 Thread Hugo Barauna
Hi guys, I am having a problem with autospec. I upgraded to rspec-1.2.6, then I tried to run my specs with autospec. All my specs passes (green), until here, that's all ok. The problem is that after all my specs have passed, the autospec stops, I mean, it doesn't continue to run on background. The

Re: [rspec-users] How to test update_attribute with mocha?

2009-05-14 Thread Phlip
Matt Wynne wrote: I've got a reason. You're coupling the tests for this simple little controller class to all the infrastructure and dependencies needed to write the record to the database and reload it again. As easy as Rails makes it for us to manage our database schemas, gratuitously introd

Re: [rspec-users] Unable to post to an update action in a controller spec

2009-05-14 Thread Fernando Perez
> put :update, :item => 1 etc. > I tried that but didn't work. I managed to get it working by simply doing: post :update, {:id => 'dummy', :item => {'1' => ...}} For some reason, I previously tried with :id => 'update' but Rails didn't like it. -- Posted via http://www.ruby-forum.com/. _