Re: [rspec-users] undefined method `route_for' for #

2010-08-30 Thread David Chelimsky
On Aug 30, 2010, at 9:36 AM, sleepwalker wrote: > Hello, all, I have this error with my rspec - controller - test, and > yes, I do found the thread with the same error here, but it isn't > helped me, think it's not my case. > > i have rails -v = Rails 3.0.0.rc, rspec -v = 2.0.0.beta.18 (hope the

Re: [rspec-users] rspec2: autotest keeps rerunning failing tests

2010-08-30 Thread Allan
Same here! Allan On Aug 30, 10:30 am, Justin Ko wrote: > Following the instructions in the README, I still have this problem. > Downgrading to RSpec beta 19 fixes it. > > On Aug 30, 11:08 am, David Chelimsky wrote: > > > > > > > > > On Aug 30, 2010, at 9:56 AM, Justin Ko wrote: > > > > On Aug 3

Re: [rspec-users] rspec2: autotest keeps rerunning failing tests

2010-08-30 Thread Allan
Hi, I tried many variations of gems in Gemfile, modifying options in autotest/discover.rb, running with and without bundle exec but in the end only backing off to 2.0.0.beta.19 stopped failing tests being immediately re-run. Allan ___ rspec-users mailin

[rspec-users] undefined method `route_for' for #

2010-08-30 Thread sleepwalker
Hello, all, I have this error with my rspec - controller - test, and yes, I do found the thread with the same error here, but it isn't helped me, think it's not my case. i have rails -v = Rails 3.0.0.rc, rspec -v = 2.0.0.beta.18 (hope they should match each other). my test is here: spec/controlle

Re: [rspec-users] Factories vs. stubs/mocks

2010-08-30 Thread Justin Ko
On Aug 30, 1:32 pm, Justin Ko wrote: > On Aug 30, 1:09 pm, Rob Biedenharn > wrote: > > > > > > > On Aug 30, 2010, at 12:54 PM, Brennon Bortz wrote: > > > > On 30 Aug 2010, at 17:17, Justin Ko wrote: > > >> On Aug 30, 11:59 am, Brennon Bortz wrote: > > >>> I am, as usual, assigning an instance

Re: [rspec-users] Factories vs. stubs/mocks

2010-08-30 Thread Justin Ko
On Aug 30, 1:09 pm, Rob Biedenharn wrote: > On Aug 30, 2010, at 12:54 PM, Brennon Bortz wrote: > > > > > > > On 30 Aug 2010, at 17:17, Justin Ko wrote: > >> On Aug 30, 11:59 am, Brennon Bortz wrote: > >>> I am, as usual, assigning an instance variable in a controller's   > >>> index action to f

Re: [rspec-users] Factories vs. stubs/mocks

2010-08-30 Thread Rob Biedenharn
On Aug 30, 2010, at 12:54 PM, Brennon Bortz wrote: On 30 Aug 2010, at 17:17, Justin Ko wrote: On Aug 30, 11:59 am, Brennon Bortz wrote: I am, as usual, assigning an instance variable in a controller's index action to find all instances of a model in the database. I want to write a spec tha

Re: [rspec-users] Factories vs. stubs/mocks

2010-08-30 Thread Justin Ko
On Aug 30, 12:54 pm, Brennon Bortz wrote: > On 30 Aug 2010, at 17:17, Justin Ko wrote: > > > > > > > > > On Aug 30, 11:59 am, Brennon Bortz wrote: > >> I am, as usual, assigning an instance variable in a controller's index > >> action to find all instances of a model in the database.  I want t

Re: [rspec-users] Factories vs. stubs/mocks

2010-08-30 Thread Brennon Bortz
On 30 Aug 2010, at 17:17, Justin Ko wrote: > > > On Aug 30, 11:59 am, Brennon Bortz wrote: >> I am, as usual, assigning an instance variable in a controller's index >> action to find all instances of a model in the database. I want to write a >> spec that checks that this variable is assigne

Re: [rspec-users] Factories vs. stubs/mocks

2010-08-30 Thread Justin Ko
On Aug 30, 11:59 am, Brennon Bortz wrote: > I am, as usual, assigning an instance variable in a controller's index action > to find all instances of a model in the database.  I want to write a spec > that checks that this variable is assigned correctly.  I can do: > > it "should provide a coll

[rspec-users] Factories vs. stubs/mocks

2010-08-30 Thread Brennon Bortz
I am, as usual, assigning an instance variable in a controller's index action to find all instances of a model in the database. I want to write a spec that checks that this variable is assigned correctly. I can do: it "should provide a collection of widgets in @widgets" do widget = Widge

Re: [rspec-users] rspec2: autotest keeps rerunning failing tests

2010-08-30 Thread Justin Ko
On Aug 30, 11:08 am, David Chelimsky wrote: > On Aug 30, 2010, at 9:56 AM, Justin Ko wrote: > > > > > > > On Aug 30, 8:00 am, nathanvda wrote: > >> I can't explain why it suddenly did not work anymore, but i > >> readhttp://gist.github.com/365816 > >> and the only thing i needed to do to make

Re: [rspec-users] rspec2: autotest keeps rerunning failing tests

2010-08-30 Thread Justin Ko
Following the instructions in the README, I still have this problem. Downgrading to RSpec beta 19 fixes it. On Aug 30, 11:08 am, David Chelimsky wrote: > On Aug 30, 2010, at 9:56 AM, Justin Ko wrote: > > > > > > > On Aug 30, 8:00 am, nathanvda wrote: > >> I can't explain why it suddenly did not

Re: [rspec-users] rspec2: autotest keeps rerunning failing tests

2010-08-30 Thread David Chelimsky
On Aug 30, 2010, at 9:56 AM, Justin Ko wrote: > On Aug 30, 8:00 am, nathanvda wrote: >> I can't explain why it suddenly did not work anymore, but i >> readhttp://gist.github.com/365816 >> and the only thing i needed to do to make it work was adding the >> following dependencies to my gemfile: >>

Re: [rspec-users] rspec2: autotest keeps rerunning failing tests

2010-08-30 Thread Justin Ko
h adding autotest-rails did not fix it for me. On Aug 30, 8:00 am, nathanvda wrote: > I can't explain why it suddenly did not work anymore, but i > readhttp://gist.github.com/365816 > and the only thing i needed to do to make it work was adding the > following dependencies to my gemfile:

Re: [rspec-users] Rspec2 ETA ??

2010-08-30 Thread David Chelimsky
On Aug 30, 2010, at 3:22 AM, Wincent Colaiuta wrote: > El 30/08/2010, a las 05:52, Arco escribió: > >> Is there an ETA for a production version of Rspec2 ?? > > I'll let David answer that one, but as a humble user, having used the betas > of RSpec 2 for a few months now I'd say it's certainly p

Re: [rspec-users] Default format for all requests in a spec

2010-08-30 Thread Matt Wynne
Or you could override the #get/post/put/delete methods in your ExampleGroup describe MyController do def get(path, params) super(path, params.merge({:format => 'js'}) end it '...' do get :show, :id => 1 end end On 27 Aug 2010, at 08:00, Justin Ko wrote: > Well, you could setup

Re: [rspec-users] rspec2: autotest keeps rerunning failing tests

2010-08-30 Thread nathanvda
I can't explain why it suddenly did not work anymore, but i read http://gist.github.com/365816 and the only thing i needed to do to make it work was adding the following dependencies to my gemfile: gem "autotest" gem "autotest-rails" The gem autotest-rails was already installed on my system. So c

Re: [rspec-users] Rspec2 ETA ??

2010-08-30 Thread Wincent Colaiuta
El 30/08/2010, a las 05:52, Arco escribió: > Is there an ETA for a production version of Rspec2 ?? I'll let David answer that one, but as a humble user, having used the betas of RSpec 2 for a few months now I'd say it's certainly production-ready. I'd deploy the latest beta to production server

[rspec-users] rspec2: autotest keeps rerunning failing tests

2010-08-30 Thread nathanvda
Since my update to beta.20 i have this weird thing. Normally i develop with autotest on, and when i get an error: i can check the errors, and they are rerun when i save the files. If all my tests pass this is still the current behaviour, but if i have failing tests, autotest will keep running thos