Sha256: 2b326b45292ee05fb99a90965aa487eef3627ffa1c0985bc49ec43990691c346
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
require 'spec_helper' 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' expect(evaluate_script('window.flashMessages')).to eq [ {'type' => 'notice', 'message' => 'Inline Notice'}, {'type' => 'notice', 'message' => 'Turbolink Notice'} ] end it 'should not duplicate messages when using the jquery.turbolinks plugin' do visit '/test/jquery_turbolinks' click_link 'This is a turbolink' click_link 'One more turbolink' expect(page).to have_content 'Turbolink content' expect(page).to have_content 'Turbolink Notice', count: 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unobtrusive_flash-3.3.1 | spec/integration/turbolinks_spec.rb |
unobtrusive_flash-3.3.0 | spec/integration/turbolinks_spec.rb |