spec/unit/veritas/relation/operation/order/class_methods/new_spec.rb in veritas-0.0.2 vs spec/unit/veritas/relation/operation/order/class_methods/new_spec.rb in veritas-0.0.3
- old
+ new
@@ -1,13 +1,13 @@
require 'spec_helper'
-describe 'Veritas::Relation::Operation::Order.new' do
+describe Relation::Operation::Order, '.new' do
subject { object.new(relation, directions) }
let(:header) { [ [ :id, Integer ], [ :name, String ] ] }
let(:body) { [ [ 1, 'Dan Kubb' ], [ 2, 'Alex Kubb' ] ] }
let(:relation) { Relation.new(header, body) }
- let(:object) { Relation::Operation::Order }
+ let(:object) { described_class }
context 'with all attributes specified in the directions' do
let(:directions) { [ relation[:id], relation[:name] ] }
it { should be_kind_of(object) }