Sha256: 71035c8e5f701707353d22ce6876fa9f467e6c030c382707182602fb59930293
Contents?: true
Size: 500 Bytes
Versions: 4
Compression:
Stored size: 500 Bytes
Contents
require 'spec_helper' module Alf module Types describe Tuple, "merge" do let(:tuple){ Tuple(id: 10, name: "Smith") } subject{ tuple.merge(other) } context 'without name clash' do let(:other){ Tuple(status: 30) } it{ should eq(Tuple(id: 10, name: "Smith", status: 30)) } end context 'with clash' do let(:other){ Tuple(id: 20, status: 30) } it{ should eq(Tuple(id: 20, name: "Smith", status: 30)) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems