File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
lib/rails/dom/testing/assertions/selector_assertions Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -87,20 +87,20 @@ def extract_selectors
87
87
def extract_equality_tests
88
88
comparisons = { }
89
89
case comparator = @values . shift
90
- when Hash
91
- comparisons = comparator
92
- when String , Regexp
93
- comparisons [ :text ] = comparator
94
- when Integer
95
- comparisons [ :count ] = comparator
96
- when Range
97
- comparisons [ :minimum ] = comparator . begin
98
- comparisons [ :maximum ] = comparator . end
99
- when FalseClass
100
- comparisons [ :count ] = 0
101
- when NilClass , TrueClass
102
- comparisons [ :minimum ] = 1
103
- else raise ArgumentError , "I don't understand what you're trying to match"
90
+ when Hash
91
+ comparisons = comparator
92
+ when String , Regexp
93
+ comparisons [ :text ] = comparator
94
+ when Integer
95
+ comparisons [ :count ] = comparator
96
+ when Range
97
+ comparisons [ :minimum ] = comparator . begin
98
+ comparisons [ :maximum ] = comparator . end
99
+ when FalseClass
100
+ comparisons [ :count ] = 0
101
+ when NilClass , TrueClass
102
+ comparisons [ :minimum ] = 1
103
+ else raise ArgumentError , "I don't understand what you're trying to match"
104
104
end
105
105
106
106
# By default we're looking for at least one match.
You can’t perform that action at this time.
0 commit comments