test/test_image.rb in ffaker-2.16.0 vs test/test_image.rb in ffaker-2.17.0
- old
+ new
@@ -12,31 +12,31 @@
def setup
@tester = FFaker::Image
end
def test_url
- assert_match(%r(#{Regexp.quote(PLACEHOLDER)}300x300\/[0-9a-f]{6}\/[0-9a-f]{6}\.png\?text=),
+ assert_match(%r(#{Regexp.quote(PLACEHOLDER)}300x300/[0-9a-f]{6}/[0-9a-f]{6}\.png\?text=),
@tester.url)
end
def test_image_url_with_param
assert_equal("#{PLACEHOLDER}300x300//.png?text=",
@tester.url('300x300', 'png', nil, nil))
end
def test_image_url_with_correct_size
- assert_match(%r(#{Regexp.quote(PLACEHOLDER)}150x320\/[0-9a-f]{6}\/[0-9a-f]{6}\.png\?text=),
+ assert_match(%r(#{Regexp.quote(PLACEHOLDER)}150x320/[0-9a-f]{6}/[0-9a-f]{6}\.png\?text=),
@tester.url('150x320'))
end
def test_image_url_with_incorrect_size
assert_raise ArgumentError do
@tester.url('150x320z')
end
end
def test_image_url_with_supported_format
- assert_match(%r(#{Regexp.quote(PLACEHOLDER)}300x300\/[0-9a-f]{6}\/[0-9a-f]{6}\.jpg\?text=),
+ assert_match(%r(#{Regexp.quote(PLACEHOLDER)}300x300/[0-9a-f]{6}/[0-9a-f]{6}\.jpg\?text=),
@tester.url('300x300', 'jpg'))
end
def test_image_url_with_incorrect_format
assert_raise ArgumentError do