I migrated from Webrat to Capybara and now i get a lot of errors. For example in webrat i could use that in integration test:
Failure/Error: response.should be_success
undefined method `success?' for nil:NilClass
describe "Admins" do
@admin = FactoryGirl.create(:admin)
fill_in "Email", :with => @admin.email
fill_in "Password", :with => 'qwerty'
click_button "Sign in"
describe "Admin panel" do
it "should have correct links" do
You're mixing controller and request specs.
In a controller spec you check the
response, in a request spec, you check the
page content, since you have only access to the html.