spec/gravtastic_spec.rb in gravtastic-2.1.1 vs spec/gravtastic_spec.rb in gravtastic-2.1.3

- old
+ new

@@ -1,7 +1,7 @@ require File.dirname(__FILE__) + '/spec_helper' -require 'gravtastic' +require File.dirname(__FILE__) + '/../lib/gravtastic' describe Gravtastic do before(:each) do @g = Class.new do |c| @@ -63,12 +63,16 @@ it "makes a saucy URL" do @user.gravatar_url(:rating => 'R').should == 'http://gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.png?r=R' end + it "abides to some new fancy feature" do + @user.gravatar_url(:extreme => true).should == 'http://gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.png?extreme=true&r=PG' + end + it "makes a URL from the defaults" do stub(@user.class).gravatar_defaults{ {:size => 20, :rating => 'R18', :secure => true, :filetype => :png} } - @user.gravatar_url.should == 'https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.png?r=R18&s=20' + @user.gravatar_url.should == 'https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.png?r=R18&s=20' end end end \ No newline at end of file