diff options
author | Timm <kaspth@gmail.com> | 2013-10-13 21:20:39 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:20 +0200 |
commit | 51c19861835dc319310df2e10cd98c2fa77411ec (patch) | |
tree | 974b3095bdcc73e61bc7cef39a3f999f88ca87a4 /actionview | |
parent | 38620e1bedb2cd38188eb6d7090beab5107f7347 (diff) | |
download | rails-51c19861835dc319310df2e10cd98c2fa77411ec.tar.gz rails-51c19861835dc319310df2e10cd98c2fa77411ec.tar.bz2 rails-51c19861835dc319310df2e10cd98c2fa77411ec.zip |
Updated CHANGELOG message about rails-dom-testing.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/CHANGELOG.md | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 42e5229715..951d0e48f7 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,17 +1,7 @@ -* Dom and Selector assertions has been moved to Action View. - - Loofah replaces html-scanner in `DomAssertions`: - `assert_dom_equal` - `assert_dom_not_equal` - - Also in `SelectorAssertions`: - `css_select` - `assert_select` - `assert_select_encoded` - `assert_select_email` +* Dom and Selector assertions has extracted to rails-dom-testing to better be used in both Action Pack and Action View. Note: - The substitution values syntax in `assert_select` has changed. + This also changes the substitution values syntax in `assert_select`. `assert_select "div#?", /\d+/` `assert_select "div:match('id', ?)", /\d+/` @@ -19,6 +9,7 @@ The attribute to match should be enclosed in quotes to avoid issues with Nokogiri's css selector syntax parsing. It is not necessary to do so with the question mark. + Calling `assert_select` with an invalid selector will emit a deprecation warning and skip the assertions. *Kasper Timm Hansen* |