Sha256: 6b377eded137a25a741b292055832db31f91093b7a69d8f8c7c56d9a8c500442
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper' require 'harp2hugo' describe(Harp2Hugo::MetaData) do expected_yaml = <<-eos --- title: Spit up on light gray carpet instead of adjacent linoleum chew iPad power cord date: '2015-05-16' tags: - cat - lipsum - meow author: yunspace --- eos it "should convert json to yaml without linewrap" do json_data = {"title" => "Spit up on light gray carpet instead of adjacent linoleum chew iPad power cord", "date" => "2015-05-16", "tags" => ["cat", "lipsum", "meow"], "author" => "yunspace"} metadata = Harp2Hugo::MetaData.new(json_data) expect(metadata.to_yaml).to eq(expected_yaml) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harp2hugo-0.0.4 | spec/meta_data_spec.rb |