Permalink
Browse files

removing unused variables

  • Loading branch information...
1 parent 691c9d2 commit 4041d7d33ad3f0acb0b04ed51da3ae29123250cb @tenderlove tenderlove committed Oct 20, 2010
Showing with 0 additions and 7 deletions.
  1. +0 −7 test/test_select_manager.rb
@@ -132,7 +132,6 @@ def execute sql, name = nil, *args
describe 'taken' do
it 'should return limit' do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.take 10
manager.taken.must_equal 10
@@ -304,7 +303,6 @@ def execute sql, name = nil, *args
it 'returns string join sql' do
table = Table.new :users
- aliaz = table.alias
manager = Arel::SelectManager.new Table.engine
manager.from Nodes::StringJoin.new(table, 'hello')
manager.join_sql.must_be_like %{ 'hello' }
@@ -320,7 +318,6 @@ def execute sql, name = nil, *args
describe 'order_clauses' do
it 'returns order clauses as a list' do
table = Table.new :users
- aliaz = table.alias
manager = Arel::SelectManager.new Table.engine
manager.from table
manager.order table[:id]
@@ -474,22 +471,19 @@ def execute sql, name = nil, *args
describe 'project' do
it 'takes multiple args' do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.project Nodes::SqlLiteral.new('foo'),
Nodes::SqlLiteral.new('bar')
manager.to_sql.must_be_like %{ SELECT foo, bar }
end
it 'takes strings' do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.project Nodes::SqlLiteral.new('*')
manager.to_sql.must_be_like %{ SELECT * }
end
it "takes sql literals" do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.project Nodes::SqlLiteral.new '*'
manager.to_sql.must_be_like %{
@@ -515,7 +509,6 @@ def execute sql, name = nil, *args
end
it "chains" do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.take(1).must_equal manager
end

0 comments on commit 4041d7d

Please sign in to comment.