spec/gravtastic_spec.rb in gravtastic-1.7.0 vs spec/gravtastic_spec.rb in gravtastic-1.7.1
- old
+ new
@@ -44,9 +44,14 @@
it "sets .gravatar_defaults to { :rating => 'PG', :secure => false } by default" do
@klass.has_gravatar
@klass.gravatar_defaults.should == { :rating => 'PG', :secure => false }
end
+ it "sets .gravatar_source to :email by default, even when :defaults are supplied" do
+ @klass.has_gravatar :defaults => { :secure => true }
+ @klass.gravatar_source.should == :email
+ end
+
it "keeps either :rating or :secure if only the other is passed as a default" do
@klass.has_gravatar :defaults => { :secure => true }
@klass.gravatar_defaults.should == { :rating => 'PG', :secure => true }
end
\ No newline at end of file