We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5963844 commit 40b512cCopy full SHA for 40b512c
test/test_address_extractor.rb
@@ -27,15 +27,15 @@ def test_replace_first_address
27
assert_match /^\s*123 Foo St., Someplace FL\s*/, address
28
"skidoosh"
29
end
30
- assert string =~ /Please send the package to skidoosh/
+ assert_match /Please send the package to skidoosh/, string
31
32
33
def test_replace_addresses
34
string = AddressExtractor.replace_addresses(test_data.first[:input]) do |address_hash, address|
35
36
37
38
- assert string =~ /via mail at:\s+skidoosh/
+ assert_match /via mail at:\s+skidoosh/, string
39
40
41
def test_no_addresses_found
0 commit comments