spec/meta_data_spec.rb in harp2hugo-0.0.1 vs spec/meta_data_spec.rb in harp2hugo-0.0.2
- old
+ new
@@ -1,9 +1,9 @@
require 'spec_helper'
require 'harp2hugo'
-describe(MetaData) do
+describe(Harp2Hugo::MetaData) do
expected_yaml = <<-eos
---
title: Dropwizard HTTPS JerseyClient with runtime JSSE CA Certificates
date: '2015-05-16'
@@ -19,10 +19,10 @@
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)
+ metadata = Harp2Hugo::MetaData.new(json_data)
expect(metadata.to_yaml).to eq(expected_yaml)
end
end
\ No newline at end of file