diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-06 09:22:36 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-06 09:22:36 -0700 |
commit | 53db9d80021f399fae312eff935e437a413f8e2d (patch) | |
tree | f938d589013a160fb5cc5c6885bf5a7b7f481e16 /spec/algebra | |
parent | a70455b9d74eba1ec2653739bcb742a3fee6d437 (diff) | |
download | rails-53db9d80021f399fae312eff935e437a413f8e2d.tar.gz rails-53db9d80021f399fae312eff935e437a413f8e2d.tar.bz2 rails-53db9d80021f399fae312eff935e437a413f8e2d.zip |
removing test code from implementation
Diffstat (limited to 'spec/algebra')
-rw-r--r-- | spec/algebra/unit/relations/relation_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/algebra/unit/relations/relation_spec.rb b/spec/algebra/unit/relations/relation_spec.rb index a7e14e6be5..a1ffd901d7 100644 --- a/spec/algebra/unit/relations/relation_spec.rb +++ b/spec/algebra/unit/relations/relation_spec.rb @@ -151,7 +151,10 @@ module Arel describe '#skip' do it "manufactures a skip relation" do - @relation.skip(4).should == Skip.new(@relation, 4) + skip = @relation.skip(4) + skip.relation.should == @relation + skip.skipped.should == 4 + skip.should be_kind_of Skip end describe 'when given a blank number of items' do |