Using FactoryGirl with RSoec
I have written a spec using Factorygirl for a method index in a controller
of my Rails application. But when I am running it with guard it is giving
following errors:
1) TestController should get index Failure/Error: assert_response :success
MiniTest::Assertion: Expected response to be a <:success>, but was <302>
1 example, 1 failure
I have no idea about the reason behind the error and how to fix that.
No comments:
Post a Comment