Permalink
Browse files

Remove some test warnings

  • Loading branch information...
1 parent 890eaf4 commit ff86da4f930c290942bfcf1896eaee24fec0377b @carlosantoniodasilva carlosantoniodasilva committed Apr 2, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −2 test/test_insert_manager.rb
  2. +0 −3 test/test_select_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 %{
@@ -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 ff86da4

Please sign in to comment.