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