Sha256: be97fab7a8c6479fdbf4f86c7bfee9539e7197db6e2d5d8a522462a02039845f

Contents?: true

Size: 577 Bytes

Versions: 4

Compression:

Stored size: 577 Bytes

Contents

require 'rails_helper'

RSpec.describe Exposition::LayoutHeaderHelper, type: :helper do
  describe "#title" do
    it "stores the given string for use in templates content_for blocks" do
      helper.title('my great title')
      expect(helper.content_for(:title)).to eq('my great title')
    end
  end

  describe "#page_description" do
    it "stores the given string for use in templates content_for blocks" do
      helper.page_description('my great description')
      expect(helper.content_for(:page_description)).
        to eq('my great description')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exposition-0.0.5.7.pre.alpha spec/helpers/layout_header_helper.rb
exposition-0.0.5.6.pre.alpha spec/helpers/layout_header_helper.rb
exposition-0.0.5.5.pre.alpha spec/helpers/layout_header_helper.rb
exposition-0.0.5.4.pre.alpha spec/helpers/layout_header_helper.rb