undefined method `inner_content' in has_tag rspec matcher
Reported by Michael Holub | May 17th, 2008 @ 06:30 PM | in 0.9.4
When have_tag rspec matcher doesn't match, it tries to show failure message.
Because of mistake in has_tag matcher code, it says:
undefined method `inner_content' for {elem
"Rocks!"
}:Hpricot::ElemTrivial patch attached :)
Comments and changes to this ticket
-
Michael Klishin (antares) May 17th, 2008 @ 07:25 PM
- → Assigned user changed from to Michael Klishin (antares)
- → State changed from new to open
- → Milestone changed from to 0.9.4
Michael,
Please submit patches made with git-format-patch.
-
Michael Klishin (antares) May 17th, 2008 @ 07:28 PM
- → State changed from open to resolved
Applied, soon to be pushed. Thanks.
-
Michael Klishin (antares) May 17th, 2008 @ 07:35 PM
- → State changed from resolved to invalid
Not pushed, there are spec failures. Update spec first, submit a patch made with git-format-patch and reopen.
-
Michael Klishin (antares) May 17th, 2008 @ 07:36 PM
- → State changed from invalid to open
heh, only account members can reopen, so leaving it as open :)
-

-

-
Star Trader May 17th, 2008 @ 10:49 PM
+1
Patch works as advertised and all tests pass as modified.
I'm still not sure why inner_content doesn't work but it is clear that inner_text does. Another lesson in being careful about what you stub and why.
-
Michael Klishin (antares) May 18th, 2008 @ 12:17 AM
- → State changed from open to resolved
Applied, thanks.
-
Michael Klishin (antares) July 16th, 2008 @ 07:23 PM
- → Tag changed from to bug matchers rspec views
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
