Permalink
Browse files

fix spec for #valid_favicon_url?

  • Loading branch information...
1 parent a48d46e commit 30ae0e07058506dbdc4189ea1c2006dd0ed1dd0f @youpy committed with myronmarston Nov 7, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/www-favicon_spec.rb
View
@@ -84,7 +84,7 @@
it 'should follow redirect' do
@favicon.stub!(:request).and_return(@response)
@response.should_receive(:kind_of?).and_return(true)
- @response.should_receive(:'[]').with('Location').and_return('http://example.com/')
+ @response.should_receive(:'[]').with('Location').and_return('http://example.com/foo/favicon.ico')
@response.should_receive(:kind_of?).and_return(false)
@favicon.valid_favicon_url?(@url).should == true
@@ -95,7 +95,7 @@
10.times do |i|
@response.should_receive(:kind_of?).and_return(true)
- @response.should_receive(:'[]').with('Location').and_return("http://example.com/#{i}")
+ @response.should_receive(:'[]').with('Location').and_return("http://example.com/#{i}/favicon.ico")
end
@favicon.valid_favicon_url?(@url).should == false

0 comments on commit 30ae0e0

Please sign in to comment.