spec/unit/veritas/relation/operation/order/direction_set/attributes_spec.rb in veritas-0.0.1 vs spec/unit/veritas/relation/operation/order/direction_set/attributes_spec.rb in veritas-0.0.2
- old
+ new
@@ -1,11 +1,12 @@
require 'spec_helper'
describe 'Veritas::Relation::Operation::Order::DirectionSet#attributes' do
- subject { directions.attributes }
+ subject { object.attributes }
- let(:attribute) { Attribute::Integer.new(:id) }
- let(:directions) { Relation::Operation::Order::DirectionSet.new([ attribute ]) }
+ let(:klass) { Relation::Operation::Order::DirectionSet }
+ let(:attribute) { Attribute::Integer.new(:id) }
+ let(:object) { klass.new([ attribute ]) }
it { should be_kind_of(Array) }
it { should == [ attribute ] }
end