Skip to content
Browse files

Merge pull request #116 from carlosantoniodasilva/remove-warnings

Remove some test warnings
  • Loading branch information...
2 parents 890eaf4 + ff86da4 commit 04dbdd97b102585f7b3bc17824a71ca087c7ad09 @carlosantoniodasilva carlosantoniodasilva committed Nov 17, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −2 test/test_insert_manager.rb
  2. +0 −3 test/test_select_manager.rb
View
2 test/test_insert_manager.rb
@@ -10,7 +10,6 @@ module Arel
describe 'insert' do
it 'can create a Values node' do
- table = Table.new(:users)
manager = Arel::InsertManager.new Table.engine
values = manager.create_values %w{ a b }, %w{ c d }
@@ -20,7 +19,6 @@ module Arel
end
it 'allows sql literals' do
- table = Table.new(:users)
manager = Arel::InsertManager.new Table.engine
manager.values = manager.create_values [Arel.sql('*')], %w{ a }
manager.to_sql.must_be_like %{
View
3 test/test_select_manager.rb
@@ -672,7 +672,6 @@ def test_join_sources
end
it 'returns string join sql' do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.from Nodes::StringJoin.new('hello')
manager.join_sql.must_be_like %{ 'hello' }
@@ -1140,15 +1139,13 @@ def test_join_sources
describe 'source' do
it 'returns the join source of the select core' do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.source.must_equal manager.ast.cores.last.source
end
end
describe 'distinct' do
it 'sets the quantifier' do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.distinct

0 comments on commit 04dbdd9

Please sign in to comment.
Something went wrong with that request. Please try again.