spec/unit/veritas/relation/operation/limit/methods/last_spec.rb in veritas-0.0.2 vs spec/unit/veritas/relation/operation/limit/methods/last_spec.rb in veritas-0.0.3
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
-describe 'Veritas::Relation::Operation::Limit::Methods#last' do
- let(:klass) { Relation }
- let(:relation) { klass.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ], [ 3 ] ].each) }
- let(:object) { relation.order }
+describe Relation::Operation::Limit::Methods, '#last' do
+ let(:described_class) { Relation }
+ let(:relation) { described_class.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ], [ 3 ] ].each) }
+ let(:object) { relation.order }
context 'with no arguments' do
subject { object.last }
it { should be_kind_of(Relation::Operation::Reverse) }