We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ff6acd commit c0f2e07Copy full SHA for c0f2e07
lib/json_spec/cucumber.rb
@@ -79,11 +79,10 @@
79
end
80
81
Then /^the (?:JSON|json)(?: response)?(?: at "(.*)")? should( not)? be an? (.*)$/ do |path, negative, type|
82
- klass = Module.const_get(type.gsub(/^./){|x| x.upcase })
83
if negative
84
- last_json.should_not have_json_type(klass).at_path(path)
+ last_json.should_not have_json_type(type).at_path(path)
85
else
86
- last_json.should have_json_type(klass).at_path(path)
+ last_json.should have_json_type(type).at_path(path)
87
88
89
0 commit comments