# encoding: utf-8 require 'spec_helper' describe Relation::Empty, '.new' do let(:object) { described_class } let(:header) { [ [ :id, Integer ] ] } context 'with a header' do subject { object.new(header) } it { should be_instance_of(object) } its(:header){ should == header } its(:tuples) { should == [] } end context 'with a header and tuples' do subject { object.new(header, tuples) } let(:tuples) { [ mock('Tuple') ] } it { should be_instance_of(object) } its(:header){ should == header } its(:tuples) { should eql(tuples) } end end