arbitrary functions

This commit is contained in:
Loic Nageleisen 2017-03-03 14:53:28 +01:00
parent 892b21eaf8
commit 448a342d5f
2 changed files with 13 additions and 0 deletions

View file

@ -68,4 +68,8 @@ class TestRaw < Minitest::Test
def test_join
assert_str_equal(Rebel::SQL.join(:foo), 'JOIN "foo"')
end
def test_function
assert_str_equal(Rebel::SQL.function('COALESCE', :foo, 0), 'COALESCE("foo", 0)')
end
end