Skip to content

Instantly share code, notes, and snippets.

@theonlyrao
Created August 8, 2016 17:07
Show Gist options
  • Save theonlyrao/6b5ffff569a90a4dfaa8c8d1544f4971 to your computer and use it in GitHub Desktop.
Save theonlyrao/6b5ffff569a90a4dfaa8c8d1544f4971 to your computer and use it in GitHub Desktop.
Adding `it` block fixes the error
RSpec.feature "AnonymousUserDoesNotSeeLinks", type: :feature do
describe "anonymous user" do
it "does not see links" do
visit root_path
within(".header") do
expect(page).not_to have_content("Links")
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment