diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 16:24:36 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 16:24:36 -0800 |
commit | fef5e012c90812dd9f1bb0de3e35497e106f8408 (patch) | |
tree | 049325678e77dfe1f3a5657581e27f774704b8a7 /test | |
parent | fe35956bf7b51bc533850449bd9135cc269da2ac (diff) | |
download | rails-fef5e012c90812dd9f1bb0de3e35497e106f8408.tar.gz rails-fef5e012c90812dd9f1bb0de3e35497e106f8408.tar.bz2 rails-fef5e012c90812dd9f1bb0de3e35497e106f8408.zip |
adding factory methods to node base class
Diffstat (limited to 'test')
-rw-r--r-- | test/nodes/test_node.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/nodes/test_node.rb b/test/nodes/test_node.rb index 71d2098a60..ffa3f273ea 100644 --- a/test/nodes/test_node.rb +++ b/test/nodes/test_node.rb @@ -2,6 +2,10 @@ require 'helper' module Arel class TestNode < MiniTest::Unit::TestCase + def test_includes_factory_methods + assert Node.new.respond_to?(:create_join) + end + def test_all_nodes_are_nodes Nodes.constants.map { |k| Nodes.const_get(k) |