test/wolverine/script_test.rb in wolverine-0.1.3 vs test/wolverine/script_test.rb in wolverine-0.2.0

- old
+ new

@@ -22,11 +22,12 @@ script = Wolverine::Script.new(file) script.instance_variable_set("@content", "asdfasdfasdf+31f") script.instance_variable_set("@digest", "79437f5edda13f9c1669b978dd7a9066dd2059f1") script.call(Redis.new) rescue Wolverine::LuaCompilationError => e - assert_equal "[e/file1.lua:1] '=' expected near '+'", e.message + assert_equal "'=' expected near '+'", e.message + assert_equal "\tfrom e/file1.lua:1", e.backtrace.first end end def test_runtime_error base = Pathname.new('/a/b/c/d') @@ -36,10 +37,11 @@ script = Wolverine::Script.new(file) script.instance_variable_set("@content", "return nil > 3") script.instance_variable_set("@digest", "39437f5edda13f9c1669b978dd7a9066dd2059f1") script.call(Redis.new) rescue Wolverine::LuaRuntimeError => e - assert_equal "[e/file1.lua:1] attempt to compare number with nil", e.message + assert_equal "attempt to compare number with nil", e.message + assert_equal "\tfrom e/file1.lua:1", e.backtrace.first end end def test_digest_and_content