Sha256: d7546678e48331a012fa2c55135c937c03813db5ec633159192f515d2fd03e9b
Contents?: true
Size: 584 Bytes
Versions: 10
Compression:
Stored size: 584 Bytes
Contents
require 'rails_helper' module BootstrapLeather RSpec.describe ModalsHelper, folder: :helpers do describe '#modal' do subject do helper.modal 'css-id', 'Title' do %(Contents Go Here) end end it { should have_tag 'div', with: { class: 'modal', id: 'css-id' } } it { should have_tag 'h3', with: { class: 'modal-title' }, text: 'Title'} it do should have_tag( :div, with: { class: 'modal-body' }, text: /Contents Go Here/ ) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems