File: json_steps.rb

package info (click to toggle)
cucumber 2.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,076 kB
  • sloc: ruby: 17,016; javascript: 4,641; makefile: 12; sh: 10; tcl: 3
file content (7 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
Then /^it should (pass|fail) with JSON:$/ do |pass_fail, json|
  actual = normalise_json(MultiJson.load(all_stdout))
  expected = MultiJson.load(json)

  expect(actual).to eq expected
  assert_success(pass_fail == 'pass')
end