aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes/test_named_function.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/nodes/test_named_function.rb')
-rw-r--r--test/nodes/test_named_function.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/nodes/test_named_function.rb b/test/nodes/test_named_function.rb
new file mode 100644
index 0000000000..18ecdd2851
--- /dev/null
+++ b/test/nodes/test_named_function.rb
@@ -0,0 +1,13 @@
+require 'helper'
+
+module Arel
+ module Nodes
+ class TestNamedFunction < MiniTest::Unit::TestCase
+ def test_construct
+ function = NamedFunction.new 'omg', 'zomg'
+ assert_equal 'omg', function.name
+ assert_equal 'zomg', function.expressions
+ end
+ end
+ end
+end