Sha256: cb7e7fe127d593a329d21b5ff82b171644c5265848de9e6a71332eaacfd1d5e5
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
require 'spec_helper' require 'harp2hugo' describe(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 = 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.1 | spec/meta_data_spec.rb |