spec/unit/veritas/relation/operation/limit/methods/take_spec.rb in veritas-0.0.2 vs spec/unit/veritas/relation/operation/limit/methods/take_spec.rb in veritas-0.0.3

- old
+ new

@@ -1,13 +1,13 @@ require 'spec_helper' -describe 'Veritas::Relation::Operation::Limit::Methods#take' do +describe Relation::Operation::Limit::Methods, '#take' do subject { object.take(limit) } - let(:klass) { Relation } - let(:limit) { 1 } - let(:relation) { klass.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ].each) } - let(:object) { relation.order } + let(:described_class) { Relation } + let(:limit) { 1 } + let(:relation) { described_class.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ].each) } + let(:object) { relation.order } it { should be_kind_of(Relation::Operation::Limit) } its(:limit) { should == limit }