spec/integration/turbolinks_spec.rb in unobtrusive_flash-3.2.0 vs spec/integration/turbolinks_spec.rb in unobtrusive_flash-3.3.0
- old
+ new
@@ -1,7 +1,7 @@
require 'spec_helper'
-if Rails.version =~ /^4\./ and Capybara.javascript_driver == :selenium
+if Rails.version.start_with? "4."
describe "turbolinks spec", type: :feature, js: true do
it 'should invoke the API for each flash message' do
visit '/test/turbolinks'
click_link 'This is a turbolink'
expect(page).to have_content 'Turbolink content'