test/test_helper.rb in gravatarify-1.2.1 vs test/test_helper.rb in gravatarify-2.0.3
- old
+ new
@@ -1,26 +1,18 @@
require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'rr'
-require 'active_support'
-begin; require 'activerecord'; rescue LoadError; end
-begin; require 'dm-core'; rescue LoadError; end
require 'gravatarify'
Test::Unit::TestCase.send :include, RR::Adapters::TestUnit
# Reset +Gravatarify+ to default hosts and cleared options
def reset_gravatarify!
Gravatarify.options.clear
Gravatarify.options[:filetype] = :jpg
- Gravatarify.subdomains = %w{ 0 1 2 www }
-
- if defined?(Gravatarify::Helper)
- Gravatarify::Helper.html_options.clear
- Gravatarify::Helper.html_options[:alt] = ''
- end
+ Gravatarify.subdomains = %w{ 0 1 2 www }
end
# some often used values...
BELLA_AT_GMAIL = "http://0.gravatar.com/avatar/1cacf1bc403efca2e7a58bcfa9574e4d"
BELLA_AT_GMAIL_JPG = "#{BELLA_AT_GMAIL}.jpg"