Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise is not source mapped #7

Open
JPDuchesne opened this issue Jul 13, 2020 · 0 comments
Open

raise is not source mapped #7

JPDuchesne opened this issue Jul 13, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@JPDuchesne
Copy link
Contributor

Raising with raise results in ? line number, i.e.

transform!(RSpock::AST::Transformation)
class MyTest < Minitest::Test
  extend ASTTransform::Declarative

  test "wrong line number" do
    Expect
    1 + 2 == 3
    raise
  end
end

Raising with a parameter works OK:

transform!(RSpock::AST::Transformation)
class MyTest < Minitest::Test
  extend ASTTransform::Declarative

  test "wrong line number" do
    Expect
    1 + 2 == 3
    raise("runtime error")
  end
end
@JPDuchesne JPDuchesne added the bug Something isn't working label Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant