Sha256: 9f56eb231deba5ba0d1bf1a54713690d858efc1a906147420cae5da6adf3c47b
Contents?: true
Size: 528 Bytes
Versions: 9
Compression:
Stored size: 528 Bytes
Contents
require 'spec_helper' describe Zemanta::Fetcher do it "returns the value in cache, if there is one" do Zemanta.configure { |config| config.cache_storage = {} } stub_zemanta_success! subject.post subject.post.should == {"response"=>"zemanta_response"} Zemanta.configure { |config| config.cache_storage = Zemanta::Configuration::NullStorage.new } end it "returns the value in web, if there is no cache" do stub_zemanta_success! subject.post.should == {"response"=>"zemanta_response"} end end
Version data entries
9 entries across 9 versions & 1 rubygems