spec/gravtastic_spec.rb in gravtastic-3.0.0 vs spec/gravtastic_spec.rb in gravtastic-3.1.0

- old
+ new

@@ -29,13 +29,13 @@ describe "#gravatar_id" do it "downcases email" do a = @g.new - stub(a).email{ 'USER@EXAMPLE.COM' } + stub(a).email do 'USER@EXAMPLE.COM' end b = @g.new - stub(b).email{ 'user@example.com' } + stub(b).email do 'user@example.com' end a.gravatar_id.should == b.gravatar_id end end @@ -61,15 +61,15 @@ 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' + @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