Sha256: 001a63e8e14b01e24c4272b18e2e25d684d51b59facd54b67c83da9bb59a1c75

Contents?: true

Size: 257 Bytes

Versions: 3

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true
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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-3.0.1 features/lib/step_definitions/json_steps.rb
cucumber-3.0.0 features/lib/step_definitions/json_steps.rb
cucumber-3.0.0.pre.2 features/lib/step_definitions/json_steps.rb