Sha256: 9c4a003e08d574e8d25abb49d0891ed222afd65867a30182d5d8e0ccdc61b390

Contents?: true

Size: 381 Bytes

Versions: 13

Compression:

Stored size: 381 Bytes

Contents

Given /^I know the time the test started$/ do
  template_vars['time'] = Time.now.to_i
end

Then /^I should not receive the JSON:$/ do |json|
  target = JSON.parse(render_string(json))

  begin
    received = JSON.parse(last_response.body)
  rescue JSON::ParserError => e
    raise "Unexpected response: #{last_response.body}\n#{e}"
  end

  expect(received).not_to eql(target)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lookout-rack-test-3.0.0 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-2.3.1 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-2.3.0 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-2.2.0 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-2.1.0 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-2.0.2 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-2.0.1 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-2.0.0 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-1.3.0 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-1.2.0 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-1.1.0 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-1.0.1 features/step_definitions/timefreeze_steps.rb
lookout-rack-test-1.0.0 features/step_definitions/timefreeze_steps.rb