mirror of
https://github.com/lloeki/rebel.git
synced 2025-12-06 10:04:39 +01:00
fix join without clause
This commit is contained in:
parent
2c727a38cb
commit
d3ba98ab1b
2 changed files with 5 additions and 1 deletions
|
|
@ -58,4 +58,8 @@ class TestRaw < Minitest::Test
|
|||
assert_str_equal(Rebel::SQL.where?(Rebel::SQL.name(:foo).eq(1).or(Rebel::SQL.name(:bar).eq(2)), Rebel::SQL.name(:baz).eq(3)), 'WHERE ("foo" = 1 OR "bar" = 2) AND "baz" = 3')
|
||||
assert_str_equal(Rebel::SQL.where?(Rebel::SQL.name(:foo).eq(1).or(Rebel::SQL.name(:bar).eq(2))), 'WHERE "foo" = 1 OR "bar" = 2')
|
||||
end
|
||||
|
||||
def test_join
|
||||
assert_str_equal(Rebel::SQL.join(:foo), 'JOIN "foo"')
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue