mirror of
https://github.com/lloeki/rebel.git
synced 2025-12-06 10:04:39 +01:00
arbitrary functions
This commit is contained in:
parent
892b21eaf8
commit
448a342d5f
2 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue