We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
assert_include
1 parent 1dabdc3 commit 2539919Copy full SHA for 2539919
1 file changed
test/psych/visitors/test_yaml_tree.rb
@@ -34,7 +34,7 @@ def test_yaml_tree_can_take_an_emitter
34
v << "hello world"
35
v.finish
36
37
- assert_match "hello world", io.string
+ assert_include io.string, "hello world"
38
end
39
40
def test_binary_formatting
@@ -167,9 +167,9 @@ def test_float
167
168
169
def test_string
170
- assert_match(/'017'/, Psych.dump({'a' => '017'}))
171
- assert_match(/'019'/, Psych.dump({'a' => '019'}))
172
- assert_match(/'01818'/, Psych.dump({'a' => '01818'}))
+ assert_include(Psych.dump({'a' => '017'}), "'017'")
+ assert_include(Psych.dump({'a' => '019'}), "'019'")
+ assert_include(Psych.dump({'a' => '01818'}), "'01818'")
173
174
175
# http://yaml.org/type/null.html
0 commit comments