Sha256: 94795384ed02928a868b4cfa7b9e28edcbc61d76dcd43ed9c827919cf578663a
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
require 'spec_helper' describe "bootstrap spec", type: :feature, js: true do it 'should show each flash message' do visit '/test/bootstrap' expect(page).to have_content 'Page loaded' expect(page).to have_content 'Inline Notice', count: 1 expect(page).to have_content 'Ajax Error', count: 1 end it 'should translate rails message types into bootstrap alert classes' do visit '/test/bootstrap' expect(page).to have_content 'Page loaded' within('.alert.alert-info') { expect(page).to have_content 'Inline Notice' } end it 'should bind close buttons for the messages' do visit '/test/bootstrap' expect(page).to have_content 'Inline Notice' find('.alert.alert-info .close').click expect(page).to have_no_content 'Inline Notice' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unobtrusive_flash-3.3.1 | spec/integration/bootstrap_spec.rb |
unobtrusive_flash-3.3.0 | spec/integration/bootstrap_spec.rb |
unobtrusive_flash-3.2.0 | spec/integration/bootstrap_spec.rb |