Sha256: 7dc119f9e3b4e7c5df10e7e0f7f50bf198b7135ffb2e21150ccbe110cade2740
Contents?: true
Size: 694 Bytes
Versions: 2
Compression:
Stored size: 694 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'flavicon' describe Flavicon do describe '::find' do it 'should delegate to Finder' do double = double('Finder').as_null_object Flavicon::Finder.should_receive(:new).with('http://www.example.com').and_return(double) Flavicon.find('http://www.example.com') end it 'should call find on Finder instance' do double = double('Finder', find: 'http://www.example.com/favicon.ico') Flavicon::Finder.should_receive(:new).with('http://www.example.com').and_return(double) Flavicon.find('http://www.example.com').should eq('http://www.example.com/favicon.ico') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flavicon-0.1.1 | spec/flavicon_spec.rb |
flavicon-0.1.0 | spec/flavicon_spec.rb |