rails-dom-testing 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4eda962c552b2c2aa131a433612d70ab9ab3ea6e
4
- data.tar.gz: 866ee681914a81e49d71e243c7323a6670f8bcef
3
+ metadata.gz: ceb2764b69e17058e7a8b7f0d0baf51285ba8f44
4
+ data.tar.gz: edd0ef0b233fd1557841dcbee14e13ea77123c3e
5
5
  SHA512:
6
- metadata.gz: a724ff7439d8c00340d009c254580cf31a3435d8ab6611d050cd83238c500af4a224a7efee6daa57b9150c7c69620892d0488b85e4e30041b2fdaf90b16f6e61
7
- data.tar.gz: 8b4de17c7f739ea7f8f25fe74f99a3ba2493fafba186a83b5e0ff3440e56afaaeb64d2b29382d171443f0d69f311a5b27f008c8f51e7680a75a789741c2605c2
6
+ metadata.gz: 2120964efb7a0514522dc818f3aacc0e29299eb98e486289837ed9c37ee3abfa8e04437e8a69f39409a60335b0c0b24bcf64b6df379b347361b4bd0d550daaac
7
+ data.tar.gz: '08af44a82eef741e961ac56a730b3a25fce4fadcbd0186bf9846aec08971ceb100e0bae2bfcef19397c2b4437132b790d4140b075308ca0e7d32b0b5ecf1d09c'
@@ -74,6 +74,7 @@ class HTMLSelector #:nodoc:
74
74
  raise ArgumentError, "Expecting a selector as the first argument"
75
75
  end
76
76
 
77
+ selector = selector.dup
77
78
  context.substitute!(selector, @values)
78
79
  selector
79
80
  end
@@ -1,7 +1,7 @@
1
1
  module Rails
2
2
  module Dom
3
3
  module Testing
4
- VERSION = "1.0.8"
4
+ VERSION = "1.0.9"
5
5
  end
6
6
  end
7
7
  end
@@ -18,6 +18,11 @@ class AssertSelectTest < ActiveSupport::TestCase
18
18
  # Test assert select.
19
19
  #
20
20
 
21
+ def test_frozen_selector_substitution
22
+ render_html %Q{<div id="1">foo</div><div id="2">foo</div>}
23
+ assert_select "div:match('id', ?)".freeze, /\d+/
24
+ end
25
+
21
26
  def test_assert_select
22
27
  render_html %Q{<div id="1"></div><div id="2"></div>}
23
28
  assert_select "div", 2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-dom-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Mendonça França
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-27 00:00:00.000000000 Z
12
+ date: 2017-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -31,7 +31,7 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 4.2.0.beta
34
+ version: 4.2.0
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
37
  version: '5.0'
@@ -41,7 +41,7 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 4.2.0.beta
44
+ version: 4.2.0
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '5.0'
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.6.8
148
+ rubygems_version: 2.6.12
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Dom and Selector assertions for Rails applications