aboutsummaryrefslogtreecommitdiffstats
path: root/spec/algebra/unit/relations/relation_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/algebra/unit/relations/relation_spec.rb')
-rw-r--r--spec/algebra/unit/relations/relation_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/algebra/unit/relations/relation_spec.rb b/spec/algebra/unit/relations/relation_spec.rb
index ec311d0c43..1a15471f9a 100644
--- a/spec/algebra/unit/relations/relation_spec.rb
+++ b/spec/algebra/unit/relations/relation_spec.rb
@@ -134,7 +134,9 @@ module Arel
describe '#take' do
it "manufactures a take relation" do
- @relation.take(5).should == Take.new(@relation, 5)
+ take = @relation.take(5)
+ take.relation.should == @relation
+ take.taken.should == 5
end
describe 'when given a blank number of items' do