test/lua.rb in ohm-1.0.0.rc1 vs test/lua.rb in ohm-1.0.0.rc2
- old
+ new
@@ -13,18 +13,18 @@
end
test do |lua|
lua.redis.set("foo", "baz")
- res = lua.run_file("getset", keys: ["foo"], argv: ["bar"])
+ res = lua.run_file("getset", :keys => ["foo"], :argv => ["bar"])
assert_equal ["baz", "bar"], res
end
test do |lua|
res = lua.run_file("ohm-save",
- keys: ["User"],
- argv: ["fname", "John", "lname", "Doe"])
+ :keys => ["User"],
+ :argv => ["fname", "John", "lname", "Doe"])
assert lua.redis.sismember("User:all", 1)
assert_equal({ "fname" => "John", "lname" => "Doe" },
lua.redis.hgetall("User:1"))
end
@@ -32,11 +32,11 @@
test do |lua|
lua.redis.sadd("User:indices", "fname")
lua.redis.sadd("User:indices", "lname")
res = lua.run_file("save-with-indices",
- keys: ["User:1", "User:all", "User:indices"],
- argv: ["fname", "John", "lname", "Doe"])
+ :keys => ["User:1", "User:all", "User:indices"],
+ :argv => ["fname", "John", "lname", "Doe"])
assert lua.redis.sismember("User:all", 1)
assert lua.redis.sismember("User:fname:John", 1)
assert lua.redis.sismember("User:lname:Doe", 1)