-
Notifications
You must be signed in to change notification settings - Fork 57
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
assert_dom_equal
should default expected
to document_root_element
#60
Comments
👍 |
Sounds good to me, yeah 👍 |
Hmm, on second thought. Why is it expected, we want to default Also unsure if having an assert_equal 'cheese' How about this? def assert_dom(expected, message = nil)
assert_dom_equal expected, document_root_element, message
end |
Eh I totally meant actual, not expected
…On Thu, Mar 9, 2017 at 11:39 AM Kasper Timm Hansen ***@***.***> wrote:
Hmm, on second thought. Why is it expected, we want to default
document_root_element to and not actual?
Also unsure if having an *_equal assertion without 2 args would read.
Consider:
assert_equal 'cheese'
How about this?
def assert_dom(expected, message = nil)
assert_dom_equal expected, document_root_element, messageend
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADaFfWTXl58w8KTXnetQirHlWQNpxgSks5rkFVggaJpZM4MKr_E>
.
|
Ha, okay, then it makes more sense 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems consistent with the
assert_select
API... 👍 / 👎 ?The text was updated successfully, but these errors were encountered: