diff --git a/lib/json_spec/cucumber.rb b/lib/json_spec/cucumber.rb index f4b66a9..ae4da7e 100644 --- a/lib/json_spec/cucumber.rb +++ b/lib/json_spec/cucumber.rb @@ -26,7 +26,7 @@ end end -Then /^the (?:JSON|json)(?: response)?(?: at "(.*)")? should( not)? be (".*"|\-?\d+(?:\.\d+)?(?:[eE][\+\-]?\d+)?|\[.*\]|%?\{.*\}|true|false|null)$/ do |path, negative, value| +Then /^the (?:JSON|json)(?: response)?(?: at "(.*)")? should( not)? be (".*"|<.*>|\-?\d+(?:\.\d+)?(?:[eE][\+\-]?\d+)?|\[.*\]|%?\{.*\}|true|false|null)$/ do |path, negative, value| if negative last_json.should_not be_json_eql(JsonSpec.remember(value)).at_path(path) else @@ -50,7 +50,7 @@ end end -Then /^the (?:JSON|json)(?: response)?(?: at "(.*)")? should( not)? include (".*"|\-?\d+(?:\.\d+)?(?:[eE][\+\-]?\d+)?|\[.*\]|%?\{.*\}|true|false|null)$/ do |path, negative, value| +Then /^the (?:JSON|json)(?: response)?(?: at "(.*)")? should( not)? include (".*"|<.*>|\-?\d+(?:\.\d+)?(?:[eE][\+\-]?\d+)?|\[.*\]|%?\{.*\}|true|false|null)$/ do |path, negative, value| if negative last_json.should_not include_json(JsonSpec.remember(value)).at_path(path) else