aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_table.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-11-29 17:22:17 -0700
committerSean Griffin <sean@thoughtbot.com>2014-11-29 17:22:17 -0700
commit98fc25991137ee09b6800578117f8c1c322680f2 (patch)
tree038381ae4465d6ea9950ecda9ef10822fd3ff9c6 /test/test_table.rb
parent7508284800f67b4611c767bff9eae7045674b66f (diff)
downloadrails-98fc25991137ee09b6800578117f8c1c322680f2.tar.gz
rails-98fc25991137ee09b6800578117f8c1c322680f2.tar.bz2
rails-98fc25991137ee09b6800578117f8c1c322680f2.zip
Remove `engine` from `TreeManager` and subclasses
This constructor parameter was unused for everything except the convenience methods `to_sql` and `where_sql`. We can pass the engine into those methods directly.
Diffstat (limited to 'test/test_table.rb')
-rw-r--r--test/test_table.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/test_table.rb b/test/test_table.rb
index 394a755727..e8eaf901cc 100644
--- a/test/test_table.rb
+++ b/test/test_table.rb
@@ -179,10 +179,6 @@ module Arel
@relation.table_name.must_equal 'users'
end
- it "should have an engine" do
- @relation.engine.must_equal Table.engine
- end
-
describe '[]' do
describe 'when given a Symbol' do
it "manufactures an attribute if the symbol names an attribute within the relation" do