Sha256: 7232611fadf4da0aed25b71cdf3d2e2097144f9939f8c02aa30c9cba61976e4a
Contents?: true
Size: 682 Bytes
Versions: 4
Compression:
Stored size: 682 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require File.expand_path('../fixtures/classes', __FILE__) describe Relation::Operation::Binary, '#header' do subject { object.header } let(:described_class) { BinaryRelationOperationSpecs::Object } let(:left) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ]) } let(:right) { Relation.new([ [ :name, String ] ], [ [ 'Dan Kubb' ] ]) } let(:object) { described_class.new(left, right) } it_should_behave_like 'an idempotent method' it { should be_instance_of(Relation::Header) } it { should == [ [ :id, Integer ], [ :name, String ] ] } end
Version data entries
4 entries across 4 versions & 2 rubygems