Skip to content
Browse files

fix spec for #valid_favicon_url?

  • Loading branch information...
1 parent ed87961 commit 0c390edcdf158aeae2239c7a1ae67d2b80e402a6 @youpy committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/www-favicon_spec.rb
View
4 spec/www-favicon_spec.rb
@@ -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 0c390ed

Please sign in to comment.
Something went wrong with that request. Please try again.