specify timezone in tests

This commit is contained in:
Ben Balter 2017-04-08 14:27:45 -04:00
parent 66aff234ca
commit 8a3cd3f9e3
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
3 changed files with 4 additions and 2 deletions

View File

@ -97,7 +97,6 @@
<meta name="google-site-verification" content="{{ site.google_site_verification }}" />
{% endif %}
<script type="application/ld+json">
{{ seo_tag.json_ld | jsonify }}
</script>

View File

@ -243,6 +243,8 @@ RSpec.describe Jekyll::SeoTag::Drop do
end
context "date modified" do
let(:config) { { "timezone" => "America/New_York" } }
context "with seo.date_modified" do
let(:page_meta) { { "seo" => { "date_modified" => "2017-01-01" } } }

View File

@ -15,7 +15,8 @@ RSpec.describe Jekyll::SeoTag::JSONLD do
end
let(:config) do
{
"logo" => "logo",
"logo" => "logo",
"timezone" => "America/New_York",
}
end
let(:page) { make_page(metadata) }