I can\'t get capybara working with rspec. It gives me this error:
undefined method `visit\' for #
Try performing all your setup in a before
block:
spec/features/security_spec.rb
describe "security" do
before do
visit "/sessions/new"
fill_in "username", :with => "user"
fill_in "password", :with => "pass"
click_button "Sign In"
end
it "signs users in" do
page.should have_content('Login Successful')
end
end