We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b16c9 commit 4649d94Copy full SHA for 4649d94
2 files changed
features/open_api.feature
@@ -290,7 +290,7 @@ Feature: Generate Open API Specification from test examples
290
And the exit status should be 0
291
292
Scenario: Index file should look like we expect
293
- Then the file "doc/api/open_api.json" should contain exactly:
+ Then the file "doc/api/open_api.json" should contain JSON exactly like:
294
"""
295
{
296
"swagger": "2.0",
features/step_definitions/json_steps.rb
@@ -1,3 +1,5 @@
1
Then /^the file "(.*?)" should contain JSON exactly like:$/ do |file, exact_content|
2
- expect(JSON.parse(read(file).join)).to eq(JSON.parse(exact_content))
+ actual = JSON.dump(JSON.parse(read(file).join))
3
+ expected = JSON.dump(JSON.parse(exact_content))
4
+ expect(actual).to eq(expected)
5
end
0 commit comments