Sha256: 9f4be104474e31a58bb33d7bfe0551604b414996e6750a08e9a34db11d0aeec7
Contents?: true
Size: 546 Bytes
Versions: 4
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' describe Tabulatr::JsonBuilder do it "does not complain when no id is manually provided" do attribute = {action: :id} data = {title: 'test', price: '7.0 EUR'} expect{Tabulatr::JsonBuilder.insert_attribute_in_hash(attribute, data)}.to_not raise_error end it "complains when a non given attribute other than id is requested" do attribute = {action: :bar} data = {title: 'test', price: '7.0 EUR'} expect{Tabulatr::JsonBuilder.insert_attribute_in_hash(attribute, data)}.to raise_error end end
Version data entries
4 entries across 4 versions & 1 rubygems