spec/unit/axiom/optimizer/algebra/rename/empty_operand/optimize_spec.rb in axiom-optimizer-0.1.0 vs spec/unit/axiom/optimizer/algebra/rename/empty_operand/optimize_spec.rb in axiom-optimizer-0.1.1

- old
+ new

@@ -3,19 +3,17 @@ require 'spec_helper' describe Optimizer::Algebra::Rename::EmptyOperand, '#optimize' do subject { object.optimize } - let(:operand) { Relation::Empty.new([ [ :id, Integer ] ]) } - let(:relation) { operand.rename(:id => :other_id) } - let(:object) { described_class.new(relation) } + let(:operand) { Relation::Empty.new([[:id, Integer]]) } + let(:relation) { operand.rename(id: :other_id) } + let(:object) { described_class.new(relation) } before do - object.should be_optimizable + expect(object).to be_optimizable end it { should be_kind_of(Relation::Empty) } - its(:header) { should equal(relation.header) } - - its(:tuples) { should equal(relation) } + its(:header) { should be(relation.header) } end