test/helper.rb in paperclip-3.0.4 vs test/helper.rb in paperclip-3.1.0

- old
+ new

@@ -175,5 +175,13 @@ Net::HTTP.get_response(URI.parse(url)) do |response| assert_equal "404", response.code, "Expected HTTP response code 404, got #{response.code}" end end + +def assert_file_exists(path) + assert File.exists?(path), %(Expect "#{path}" to be exists.) +end + +def assert_file_not_exists(path) + assert !File.exists?(path), %(Expect "#{path}" to not exists.) +end