[rspec-users] getting weird "no route matches" error, using rspec2 and rails3 (just migrated) but app works

2011-04-07 Thread nathanvda
Hi there, in my main view i have a link to the root_path, which converts to {:controller => "home", :action => :index} In every spec i run, i get the error: No route matches {:controller=>"home"} While if i run the application in development, everything renders without any problem and

[rspec-users] RSpec is for the literate

2011-04-07 Thread Avdi Grimm
I posted an article on RSpec this morning, I thought it might be of interest to this list: http://avdi.org/devblog/2011/04/07/rspec-is-for-the-literate/ -- Avdi Grimm http://avdi.org ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforg

Re: [rspec-users] Mocks and CL Programs

2011-04-07 Thread Pat Maddox
On Apr 3, 2011, at 8:24 AM, andyl wrote: > I am using rspec/aruba to do integration tests of a command-line program i'm > writing. > > I'd like to use something like FakeWeb to stub the network calls in the > command-line program. > > But with aruba, the program under test runs in a separate p

[rspec-users] How to use url helpers like link_to in mailers specs?

2011-04-07 Thread Szymon Nowak
Hey, I tried including ActionView::Helpers::UrlHelper, but it was complaining about missing "controller" method. Cheers, Szymon ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Overriding Kernel#inspect just for tests

2011-04-07 Thread Stefan Kanev
Hi all. Occasionally, I write specs that verify the order in which some ActiveRecord objects are returned. For example, in a toy project I do: Reply.stub :per_page => 2 topic.replies_on_page(1).should == [second, first] The spec out quickly get unwieldy when it fails: 1) Topic paginates its r