From 855ef7b4690493dff97503a0fc4c14eeb2f6257b Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Wed, 23 Aug 2017 16:44:33 -0400 Subject: [PATCH] make the json minification spec explicit --- spec/jekyll_seo_tag_integration_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/jekyll_seo_tag_integration_spec.rb b/spec/jekyll_seo_tag_integration_spec.rb index 78b6fc0..016fdae 100755 --- a/spec/jekyll_seo_tag_integration_spec.rb +++ b/spec/jekyll_seo_tag_integration_spec.rb @@ -329,8 +329,7 @@ EOS end it "minifies JSON-LD" do - expected = '{"name":null,"description":"description"' - expect(output).to match(expected) + expect(output).to_not match(/{.*?\s.*?}/) end end end