Skip to content

Commit

Permalink
fix spec for #valid_favicon_url?
Browse files Browse the repository at this point in the history
  • Loading branch information
youpy authored and myronmarston committed Nov 13, 2009
1 parent a48d46e commit 30ae0e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/www-favicon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 30ae0e0

Please sign in to comment.