From 1f49085770bdfda0ea47f76b956a3343360ce408 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 2 Jul 2015 20:40:17 +0900 Subject: [PATCH] Fix a spec for an error message --- spec/models/agents/website_agent_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/agents/website_agent_spec.rb b/spec/models/agents/website_agent_spec.rb index 077fba8d..b9f5078b 100644 --- a/spec/models/agents/website_agent_spec.rb +++ b/spec/models/agents/website_agent_spec.rb @@ -83,7 +83,7 @@ describe Agents::WebsiteAgent do 'url' => { 'foo' => 'bar' }, } expect(@checker).to_not be_valid - expect(@checker.errors_on(:base)).to include("When type is json, all extractions must have a path attribute.") + expect(@checker.errors_on(:base)).to include(/When type is json, all extractions must have a path attribute/) @checker.options['type'] = 'json' @checker.options['extract'] = {