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

Don't silently ignore expressions #2

Open
pupeno opened this issue Sep 3, 2011 · 1 comment
Open

Don't silently ignore expressions #2

pupeno opened this issue Sep 3, 2011 · 1 comment
Assignees

Comments

@pupeno
Copy link
Owner

pupeno commented Sep 3, 2011

Currently if you do something like

assert_difference "Exp1", "Exp2" do
  foo
end

Exp2 is ignored because it's taken as the error message. Instead one should write

assert_difference ["Exp1", "Exp2"] do
  foo
end

but there's no error pushing one to write it the correct way. Fix the API so this thing cannot happen.

@ghost ghost assigned pupeno Sep 3, 2011
@pupeno
Copy link
Owner Author

pupeno commented Sep 3, 2011

What about having an assert_increase for the "Exp1", "Exp2" call and otherwise, require an array or a hash?

@pupeno pupeno removed this from the 0.4.0 milestone Nov 13, 2014
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