spec/unit/source/front_matter/test_locals.rb in wlang-2.2.0 vs spec/unit/source/front_matter/test_locals.rb in wlang-2.2.1

- old
+ new

@@ -10,9 +10,14 @@ context 'without front matter' do let(:source){ "Hello world!" } it{ should eq({}) } end + context 'with an empty front matter' do + let(:source){ "---\n---\nHello world!" } + it{ should eq({}) } + end + describe 'with a front matter' do let(:source){ "---\nlocals:\n x: 2\n---\nHello world!" } specify 'it decode the YAML data' do subject.should eq({"x" => 2}) end \ No newline at end of file