Commit 15712902 by Alexander Presber

require pathname

formulate assert conditions
parent 21919348
...@@ -10,6 +10,7 @@ require 'active_record/version' ...@@ -10,6 +10,7 @@ require 'active_record/version'
require 'active_support' require 'active_support'
require 'mime/types' require 'mime/types'
require 'pry' require 'pry'
require 'pathname'
puts "Testing against version #{ActiveRecord::VERSION::STRING}" puts "Testing against version #{ActiveRecord::VERSION::STRING}"
......
...@@ -672,9 +672,8 @@ class S3Test < Test::Unit::TestCase ...@@ -672,9 +672,8 @@ class S3Test < Test::Unit::TestCase
end end
should "succeed" do should "succeed" do
@dummy.avatar.url() =~ /^https:/ assert_equal 0, @dummy.avatar.url() =~ /^https:/
@dummy.avatar.url(:thumb) =~ /^http:/ assert_equal 0, @dummy.avatar.url(:thumb) =~ /^http:/
assert true
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment