Sha256: 0dc0acf5a575313648d095c62f5748f43df74e5e652dc7d96d2a3c62680e5333
Contents?: true
Size: 589 Bytes
Versions: 3
Compression:
Stored size: 589 Bytes
Contents
require 'spec_helper' module Polygon describe Entry, 'to_hash' do let(:fixtures){ Entry.new(fixtures_path, "") } subject{ entry.to_hash } context 'on with_index_yml/say-hello.md' do let(:entry){ fixtures / "with_index_yml/say-hello.md" } it 'should take all data along ancestors' do expected = { "title" => "Say Hello", "content" => "# How to Say Hello to World?\n\nThis way!\n", "keywords" => ["say-hello", "with_index_yml/index.yml", "root"] } subject.should eq(expected) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polygon-0.10.1 | spec/entry/test_to_hash.rb |
polygon-0.10.0 | spec/entry/test_to_hash.rb |
polygon-0.9.1 | spec/entry/test_to_hash.rb |