You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- Then('it should fail with JSON:') do |json|
- expect(command_line).to have_failed
- actual = normalise_json(JSON.parse(command_line.stdout))
- expected = JSON.parse(json)
-
- expect(actual).to eq expected
- end
-
- Then('it should pass with JSON:') do |json|
- expect(command_line).to have_succeded
- actual = normalise_json(JSON.parse(command_line.stdout))
- expected = JSON.parse(json)
-
- expect(actual).to eq expected
- end
-
- Then('file {string} should contain JSON:') do |filename, json|
- actual = normalise_json(JSON.parse(File.read(filename)))
- expected = JSON.parse(json)
-
- expect(actual).to eq expected
- end
|