[rspec-users] Error testing rails controller

David Chelimsky dchelimsky at gmail.com
Mon Apr 7 15:14:50 EDT 2008


On Fri, Apr 4, 2008 at 12:46 PM, Jacob <jacob.basham at gmail.com> wrote:
> I am trying to test my controllers with RSpec and from the examples I
>  have found it is as easy as this:
>
>  describe SessionsController do
>
>   it "should render login template" do
>     get 'new'
>     response.should render_template(:login)
>   end

Try 'login'.

>
>  end
>
>
>  However both get and post raise "wrong number of arguments (2 for 1)".
>  I am working with 1.1.3, I rolled back to 1.1.2 and still suffer the
>  same fate. Any thoughts onto what may be causing this issue?
>
>  Thanks
>  _______________________________________________
>  rspec-users mailing list
>  rspec-users at rubyforge.org
>  http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list