test/test_book.rb in ffaker-2.5.0 vs test/test_book.rb in ffaker-2.6.0
- old
+ new
@@ -17,11 +17,11 @@
def test_title
assert_match(/[\sa-z]+/, @tester.title)
end
def test_genre
- assert_match(%r([\w\s'\/]+), @tester.genre)
+ assert_match(%r{[\w\s'\/]+}, @tester.genre)
end
def test_author
assert_match(/[\sa-z]+/, @tester.author)
end
@@ -33,9 +33,9 @@
def test_description
assert_match(/[\sa-z]+/, @tester.description)
end
def test_cover
- assert_match(%r(\Ahttps:\/\/robohash\.org\/.+\.png\?size=300x300\z),
+ assert_match(%r{\Ahttps:\/\/robohash\.org\/.+\.png\?size=300x300\z},
@tester.cover)
end
end