Fix a spec for an error message

Akinori MUSHA преди 9 години
родител
ревизия
1f49085770
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      spec/models/agents/website_agent_spec.rb

+ 1 - 1
spec/models/agents/website_agent_spec.rb

@@ -83,7 +83,7 @@ describe Agents::WebsiteAgent do
83 83
             'url' => { 'foo' => 'bar' },
84 84
           }
85 85
           expect(@checker).to_not be_valid
86
-          expect(@checker.errors_on(:base)).to include("When type is json, all extractions must have a path attribute.")
86
+          expect(@checker.errors_on(:base)).to include(/When type is json, all extractions must have a path attribute/)
87 87
 
88 88
           @checker.options['type'] = 'json'
89 89
           @checker.options['extract'] = {