fix assert_select wanting something to call .css on#39
Open
fix assert_select wanting something to call .css on#39
Conversation
Contributor
Author
|
otherwise fails with nasty undefined method css for Array :( |
|
Yes please |
Contributor
Author
|
@rafaelfranca this is some old 💩 but we still need that :D |
Member
rafaelfranca
left a comment
There was a problem hiding this comment.
Could you add a test case?
| assert true # to count the assertion | ||
| if block_given? && !([:remove, :show, :hide, :toggle].include? rjs_type) | ||
| to_select = if ActionPack::VERSION::STRING > "4.2.0" | ||
| Nokogiri::HTML(matches.map(&:to_s).join) |
Member
There was a problem hiding this comment.
Does this gem depends on Nokogiri? I don't think so. If we want to use nokogiri we need to make it a dependency
Contributor
Author
|
yeah I guess you are right ... this is too dirty |
Member
|
What I did in Shopify was to keep the prototype JavaScript code and just remove all ruby methods calls that we had. |
Contributor
Author
|
I think we are ready to remove prototype ... lots of old routes gone now
... so maybe worth a new try :)
…On Thu, Jun 15, 2017 at 2:52 PM, Rafael França ***@***.***> wrote:
What I did in Shopify was to keep the prototype JavaScript code and just
remove all ruby methods calls that we had.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAsZ5lCjHaPYZQn5_FIER9dyLO7eSkVks5sEaewgaJpZM4HwuGW>
.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@pschambacher