Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #116 from carlosantoniodasilva/remove-warnings

Remove some test warnings
  • Loading branch information...
commit 04dbdd97b102585f7b3bc17824a71ca087c7ad09 2 parents 890eaf4 + ff86da4
@carlosantoniodasilva carlosantoniodasilva authored
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,7 +1139,6 @@ 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
@@ -1148,7 +1146,6 @@ def test_join_sources
describe 'distinct' do
it 'sets the quantifier' do
- table = Table.new :users
manager = Arel::SelectManager.new Table.engine
manager.distinct
Please sign in to comment.
Something went wrong with that request. Please try again.