diff options
Diffstat (limited to 'spec/arel/unit/relations/take_spec.rb')
-rw-r--r-- | spec/arel/unit/relations/take_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/arel/unit/relations/take_spec.rb b/spec/arel/unit/relations/take_spec.rb deleted file mode 100644 index dca7806057..0000000000 --- a/spec/arel/unit/relations/take_spec.rb +++ /dev/null @@ -1,20 +0,0 @@ -require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper') - -module Arel - describe Take do - before do - @relation = Table.new(:users) - @taken = 4 - end - - describe '#to_sql' do - it "manufactures sql with limit and offset" do - Take.new(@relation, @taken).to_s.should be_like(" - SELECT `users`.`id`, `users`.`name` - FROM `users` - LIMIT #{@taken} - ") - end - end - end -end
\ No newline at end of file |