Skip to content

Commit

Permalink
"No JQuery call matches #{opts.inspect}" even though it did find a match
Browse files Browse the repository at this point in the history
  • Loading branch information
csommerauer committed Aug 22, 2011
1 parent abf9cbd commit 333c391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jquery/assert_select.rb
Expand Up @@ -52,7 +52,7 @@ def assert_select_jquery(*args, &block)

pattern = "\\.#{jquery_method || '\\w+'}\\("
pattern = "#{pattern}['\"]#{jquery_opt}['\"],?\\s*" if jquery_opt
pattern = "#{pattern}#{PATTERN_HTML}" if block
pattern = "#{pattern}#{PATTERN_HTML}"
pattern = "(?:jQuery|\\$)\\(['\"]#{id}['\"]\\)#{pattern}" if id

fragments = []
Expand Down Expand Up @@ -96,4 +96,4 @@ def unescape_js(js_string)

end
end
end
end

0 comments on commit 333c391

Please sign in to comment.