Sha256: 6663be6de465342824500142d9753e9bfceae10882adafb62f46d30e82bde638
Contents?: true
Size: 277 Bytes
Versions: 4
Compression:
Stored size: 277 Bytes
Contents
require 'saorin/test' def deserialize(data) data && JSON.load(data) end def validates(process, inputs, answers) inputs.zip(answers).each do |input, answer| output = deserialize process.call(input) answer = deserialize answer output.should eq answer end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
saorin-0.3.2 | spec/support/utils.rb |
saorin-0.3.1 | spec/support/utils.rb |
saorin-0.3.0 | spec/support/utils.rb |
saorin-0.2.0 | spec/support/utils.rb |