Commit Graph

20 Commits

Author SHA1 Message Date
Roque Pinel
b6d6e25148 Fix unescape_js to match changes in Action View
Unescapes dollar signs and backticks added by rails/rails@033a738817
2020-03-30 16:42:09 -04:00
lanzhiheng
26b64cacfe Fix we can not input jquery code without semicolon. 2018-04-21 16:35:44 +08:00
Rafael França
3b2b33a8c7 Merge branch 'master' into support_even_more_css_selectors 2017-05-11 22:15:37 -07:00
Rafael França
a3ed1644e7 Merge pull request #242 from juank-pa/add_support_for_multiple_matches
Add support for multiple matches
2017-05-11 22:14:35 -07:00
Juan Pazmino
d1f329ee7e Add support for multiple matches 2017-05-06 22:26:19 -05:00
Juan Pazmino
bfda05701a Support even more css selectors 2017-05-06 22:13:46 -05:00
Juan Pazmino
9a8847854f Fix bug with single quoted escaped html 2017-05-05 20:11:40 -05:00
Patrik Bóna
68fb08492c Remove unnecessary characters from regex 2016-11-02 19:59:51 +01:00
Patrik Bóna
d4dd8cdf10 Add possibility to test HTML attribute selectors
Previously it wasn't possible to test something like this:

```
assert_select_jquery :remove, "[data-placeholder~=name]"
```

This commit fixes it by escaping `[` and `]` characters in the selector.
2016-11-02 14:17:26 +01:00
Vladislav Petrov
66907165d9 Fix problem with quotes on html pattern 2015-04-26 04:23:02 +03:00
Vladislav Petrov
0eed9a99ba All tests pass 2015-04-23 05:29:46 +03:00
Vladislav Petrov
fc1eb1e61b Add patterns for select more jquery functions 2015-04-23 01:09:53 +03:00
Godfrey Chan
0f16815f1c Directly monkey patches the module on rails-dom-testing
It appears that by the time this file is loaded, the `Rails::Dom::Testing...`
module has already been included into the relevant classes.

Because the ancestor chain is copied at include time, including a new module
into `Rails::Dom::Testing...` after it has been included has no effect on the
classes we wanted to patch, so just re-open the class here.
2014-09-05 19:13:49 -07:00
Rafael Mendonça França
d29d085cef Merge pull request #153 from georgeclaghorn/method-calls-with-whitespace
Allow whitespace before method call in assert_select_jquery
2014-09-01 21:43:15 -03:00
Rafael Mendonça França
1d60c89400 Whitespaces 2014-09-01 21:34:41 -03:00
Sam Ruby
94298a39bd Replace HTML::Document with Nokogiri
Inject into Rails::Dom::Testing::Assertions::DomAssertions

Explicit require statement increases the likelihood that further changes in
module names will be detected early.

Gem dependency on rails-dom-testing will ensure that this change is only
picked up with versions of Rails that are compatible with rails-dom-testing.
2014-08-28 14:03:35 -04:00
George Claghorn
6d7b3e61ae Allow whitespace before method call in assert_select_jquery. 2014-03-13 22:10:31 -04:00
Christian Sommerauer
333c391740 "No JQuery call matches #{opts.inspect}" even though it did find a match 2011-08-22 13:09:46 +01:00
Ben Morse
5c32a47457 Let unescape_js handle escaped single quotes. 2011-08-20 08:46:30 -07:00
Andre Arko
9205e3eb02 lib/jquery/assert_select is much cleaner of a name 2011-05-26 13:42:00 -07:00