Sha256: 3c6a8b50816567662c0282af0915a47b49f43593e517936b65ce1abb3f21eedc
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
require 'spec_helper' require 'harp2hugo' describe(Harp2Hugo::MetaData) do expected_yaml = <<-eos --- title: Dropwizard HTTPS JerseyClient with runtime JSSE CA Certificates date: '2015-05-16' tags: - dropwizard - ssl - jersey author: yunspace linktitle: Dropwizard HTTPS JerseyClient with runtime JSSE CA Certificates --- eos it "should convert json to yaml" do json_data = {"title" => "Dropwizard HTTPS JerseyClient with runtime JSSE CA Certificates", "date" => "2015-05-16", "tags" => ["dropwizard", "ssl", "jersey"], "author" => "yunspace"} metadata = Harp2Hugo::MetaData.new(json_data) expect(metadata.to_yaml).to eq(expected_yaml) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
harp2hugo-0.0.3 | spec/meta_data_spec.rb |
harp2hugo-0.0.2 | spec/meta_data_spec.rb |