Sha256: d115565100aa448da649444a8f744d6e6dd73524ae12743aeee470bc3d0755f0

Contents?: true

Size: 406 Bytes

Versions: 6

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe FrontMatterParser::Parsed do
  subject(:parsed) do
    described_class.new(front_matter: front_matter, content: content)
  end

  let(:front_matter) { { 'title' => 'hello' } }
  let(:content) { 'Content' }

  describe '#[]' do
    it 'returns front_matter value for given key' do
      expect(parsed['title']).to eq('hello')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
front_matter_parser-1.0.1 spec/front_matter_parser/parsed_spec.rb
front_matter_parser-1.0.0 spec/front_matter_parser/parsed_spec.rb
front_matter_parser-0.2.1 spec/front_matter_parser/parsed_spec.rb
front_matter_parser-0.2.0 spec/front_matter_parser/parsed_spec.rb
front_matter_parser-0.1.1 spec/front_matter_parser/parsed_spec.rb
front_matter_parser-0.1.0 spec/front_matter_parser/parsed_spec.rb