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

Setup and scopes #33

Open
carlosipe opened this issue Apr 26, 2016 · 0 comments
Open

Setup and scopes #33

carlosipe opened this issue Apr 26, 2016 · 0 comments

Comments

@carlosipe
Copy link

carlosipe commented Apr 26, 2016

Is this the intended behavior?

scope do
  setup do
    5
  end

  test do |i|
    assert_equal i, 5
  end
end

scope do
  test do |i|
    assert_equal i,5 ##Wooah, I thought i was supposed to be nil, given that this test belongs to a different scope...
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant