Sha256: d57636a9a0189d8702393d088942d03acc5d5bc31213773c1186a9baac61633e

Contents?: true

Size: 537 Bytes

Versions: 10

Compression:

Stored size: 537 Bytes

Contents

require 'rails_helper'

module BootstrapLeather
  RSpec.describe HeroUnitHelper, folder: :helpers do
    describe '#add_hero_unit' do
      before do
        helper.add_hero_unit { 'Yay!' }
      end
      subject { helper.content_for(:hero_unit) }
      it { should eq 'Yay!' }
    end
    describe '#render_hero_unit' do
      before do
        helper.content_for(:hero_unit) { 'Yay!' }
      end
      subject { helper.render_hero_unit }
      it { should have_tag 'div', with: { class: 'jumbotron' }, text: /Yay!/ }
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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