File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ Feature: Generate Open API Specification from test examples
290290 And the exit status should be 0
291291
292292 Scenario : Index file should look like we expect
293- Then the file "doc/api/open_api.json" should contain exactly:
293+ Then the file "doc/api/open_api.json" should contain JSON exactly like :
294294 """
295295{
296296 "swagger": "2.0",
Original file line number Diff line number Diff line change 11Then /^the file "(.*?)" should contain JSON exactly like:$/ do |file , exact_content |
2- expect ( JSON . parse ( read ( file ) . join ) ) . to eq ( JSON . parse ( exact_content ) )
2+ actual = JSON . dump ( JSON . parse ( read ( file ) . join ) )
3+ expected = JSON . dump ( JSON . parse ( exact_content ) )
4+ expect ( actual ) . to eq ( expected )
35end
You can’t perform that action at this time.
0 commit comments