test/import/test_shake_lexer.rb in tracksperanto-2.6.1 vs test/import/test_shake_lexer.rb in tracksperanto-2.6.2
- old
+ new
@@ -5,17 +5,17 @@
OFX_CURLY_BRACES = File.dirname(__FILE__) + "/samples/shake_script/ofx_vardefs.shk"
L = Tracksperanto::ShakeGrammar::Lexer
WRONG = File.dirname(__FILE__) + "/samples/flame_stabilizer/hugeFlameSetup.stabilizer"
def test_raises_wrong_input_when_buffer_gets_too_large
- assert_raise(Tracksperanto::ShakeGrammar::WrongInput) do
+ assert_raise(Tracksperanto::ShakeGrammar::WrongInputError) do
parse(File.open(WRONG), L)
end
end
def test_raises_wrong_input_on_stack_size
huge_stack = "(" * 345
- assert_raise(Tracksperanto::ShakeGrammar::WrongInput) do
+ assert_raise(Tracksperanto::ShakeGrammar::WrongInputError) do
parse(StringIO.new(huge_stack), L)
end
end
def test_parse_single_cmt
\ No newline at end of file