Sha256: 37c14005d7004fbfd1cd04871bf06e4b9b71f972019fb7a729808a2d6b1f5f0c
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
require 'spec_helper' require 'yaml' require 'json' # other libraries could fetch the test data from Github. file = File.join(__dir__, 'acceptance_data.yml') tests = YAML::load_file(file) describe 'Multiplatform compatibility acceptance tests' do tests.each do |test| input = JSON.parse(test['json'].to_json, quirks_mode: true) signature = test['signature'] string = test['string'] specify "#{test['desc']} string" do expect(Crimp.notation(input)).to eq(string) end specify "#{test['desc']} signature" do expect(Crimp.signature(input)).to eq(signature) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crimp-1.0.0 | spec/acceptance_spec.rb |