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
Query methods don't work with asserts_topic #33
Comments
if you're trying to use the assertion methods its: asserts_topic.includes 3
asserts_topic.empty if you're trying to call their methods, you'll have to pass it to topic explicitly like: asserts("that it includes 3") { topic.include? 3 }
asserts("that its empty") { topic.empty? } |
Thanks guys. Is that because they are the builtin macros? I admit I didn't scroll down all the way (just experimenting). I just assumed it'd delegate the call to the topic. Any reason why it doesn't just do that? That would be the expected behavior, imo. At the very least the error message could be better. |
As I said in comment on an issue yesterday:
Hopefully, you'll also forgive me for the belated response. Basically, one part of me really wants to support the query-able versions of these assertion macros. It seems logical/intuitive that you'd want to use So, there's that. On top of that, I'm not too keen on possibly overriding some behavior that is built into every Object: All that said, I might just be thinking about this all wrong. Let me know. |
Both of these:
Generate the same error:
(Line 6 is the line that has the query method on it)
Non-query methods work fine.
Am I doing something wrong? This seems like too obvious of a bug to go undetected.
The text was updated successfully, but these errors were encountered: