Sha256: 55a7eaa5ed815ab9bf6f14512de5ddd3f31f20b67a686fa6f9486eafa2ed63c4

Contents?: true

Size: 531 Bytes

Versions: 10

Compression:

Stored size: 531 Bytes

Contents

require 'rails_helper'

module BootstrapLeather
  RSpec.describe FootHelper, folder: :helpers do
    describe '#add_footer_javascript' do
      before do
        helper.add_footer_javascript { 'foo' }
      end
      subject { helper.content_for(:footer_javascript) }
      it { should eq 'foo' }
    end
    describe '#render_footer_javascript' do
      before do
        helper.content_for(:footer_javascript) { 'bar' }
      end
      subject { helper.render_footer_javascript }
      it { should match /bar/ }
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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