Fix a spec for an error message

This commit is contained in:
Akinori MUSHA 2015-07-02 20:40:17 +09:00
parent dd5d213508
commit 1f49085770

View file

@ -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'] = {