Sha256: e4e4258af52e6398d1df95c3cfa6024a8eb7b48032ead1ec458bb435485bbec6

Contents?: true

Size: 395 Bytes

Versions: 14

Compression:

Stored size: 395 Bytes

Contents

require 'spec_helper'
module WLang
  describe Source, "template_content" do

    let(:source){ Source.new("Hello world") }
    subject{ source.with_front_matter(enabled) }

    context 'when enabled' do
      let(:enabled){ true }
      it { should be_a(Source::FrontMatter) }
    end

    context 'when disabled' do
      let(:enabled){ false }
      it { should eq(source) }
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
wlang-3.0.1 spec/unit/source/test_with_front_matter.rb
wlang-3.0.0 spec/unit/source/test_with_front_matter.rb
wlang-2.3.1 spec/unit/source/test_with_front_matter.rb
wlang-2.3.0 spec/unit/source/test_with_front_matter.rb
wlang-2.2.4 spec/unit/source/test_with_front_matter.rb
wlang-2.2.3 spec/unit/source/test_with_front_matter.rb
wlang-2.2.2 spec/unit/source/test_with_front_matter.rb
wlang-2.2.1 spec/unit/source/test_with_front_matter.rb
wlang-2.2.0 spec/unit/source/test_with_front_matter.rb
wlang-2.1.2 spec/unit/source/test_with_front_matter.rb
wlang-2.1.1 spec/unit/source/test_with_front_matter.rb
wlang-2.1.0 spec/unit/source/test_with_front_matter.rb
wlang-2.0.1 spec/unit/source/test_with_front_matter.rb
wlang-2.0.0 spec/unit/source/test_with_front_matter.rb