[rspec-users] undefined method `route_for

David Chelimsky dchelimsky at gmail.com
Thu Nov 12 22:57:24 EST 2009


On Wed, Nov 11, 2009 at 11:19 PM, Amit Kulkarni <lists at ruby-forum.com>wrote:

> David Chelimsky wrote:
> > On Nov 11, 2009, at 5:58 AM, Amit Kulkarni <lists at ruby-forum.com> wrote:
> >
> >>
> >>    it "should map { :controller => 'home' } RESTfully" do
> >>      params_from( :get, '/home' ).should == { :controller => 'home',
> >> :action => 'index' }
> >>    end
> >>  end
> >> end
> >>
> >> I am using "spec home_controller_spec.rb" by going under
> >> spec/controllers/ directory.
> >
> > Don't do that :)
> >
> > Go to the project root directory and say "spec spec/controllers/
> > home_controller_spec.rb"
>
> Hi David,
> I tried to run from the above command.
> It gets executed but i am not able to see any results as in 2 examples 2
> passed something like that as it comes normally.
>

Then how do you know it gets executed?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091112/46b79853/attachment.html>


More information about the rspec-users mailing list