spec/unit/axiom/algebra/rename/methods/rename_spec.rb in axiom-0.1.0 vs spec/unit/axiom/algebra/rename/methods/rename_spec.rb in axiom-0.1.1
- old
+ new
@@ -3,12 +3,12 @@
require 'spec_helper'
describe Algebra::Rename::Methods, '#rename' do
subject { object.rename(aliases) }
- let(:described_class) { Relation }
- let(:attribute) { Attribute::Integer.new(:id) }
- let(:aliases) { { :id => :other_id } }
- let(:object) { described_class.new([ attribute ], LazyEnumerable.new([ [ 1 ] ])) }
+ let(:described_class) { Relation }
+ let(:attribute) { Attribute::Integer.new(:id) }
+ let(:aliases) { { id: :other_id } }
+ let(:object) { described_class.new([attribute], LazyEnumerable.new([[1]])) }
it { should be_instance_of(Algebra::Rename) }
end