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

Version Path
bootstrap_leather-0.10.14 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.13 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.11 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.10 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.9 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.8 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.7 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.6 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.5 spec/helpers/bootstrap_leather/modals_helper_spec.rb
bootstrap_leather-0.10.4 spec/helpers/bootstrap_leather/modals_helper_spec.rb