Skip to content

Instantly share code, notes, and snippets.

@danielwestendorf
Created July 2, 2019 03:32
Show Gist options
  • Save danielwestendorf/812d420951b0c329de467f40d87afdd9 to your computer and use it in GitHub Desktop.
Save danielwestendorf/812d420951b0c329de467f40d87afdd9 to your computer and use it in GitHub Desktop.
# spec/rails_helper.rb
RSpec.configure do |config|
...
config.include TurbolinkNav, type: :system
end
# spec/system/thing_spec.rb
RSpec.describe "test of thing", type: :system do
it "does a turbolink nav" do
visit root_path
turbolinks_nav do
click_on "TurboLink"
end
expect(page).to have_content("new content or whatever")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment