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

assert_dom_equal should default expected to document_root_element #60

Open
chancancode opened this issue Feb 24, 2017 · 5 comments
Open

Comments

@chancancode
Copy link
Member

This seems consistent with the assert_select API... 👍 / 👎 ?

@rafaelfranca
Copy link
Member

👍

@kaspth
Copy link
Contributor

kaspth commented Mar 9, 2017

Sounds good to me, yeah 👍

@kaspth
Copy link
Contributor

kaspth commented Mar 9, 2017

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, message
end

@chancancode
Copy link
Member Author

chancancode commented Mar 9, 2017 via email

@kaspth
Copy link
Contributor

kaspth commented Mar 9, 2017

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
Labels
None yet
Development

No branches or pull requests

3 participants