Sha256: e448b1b14e263192c0b5434a39e74981964302e4d3f52fafa8f78d233837c1ec
Contents?: true
Size: 573 Bytes
Versions: 5
Compression:
Stored size: 573 Bytes
Contents
require 'spec_helper' describe Restfulie::Client::Cache::Fake do it "should always retrieve nil, even if it was put" do req = Object.new url = Object.new response = mock Net::HTTPResponse cache = Restfulie::Client::Cache::Fake.new cache.put(url, req, response) cache.get(url, req).should be_nil end it "putting should return the response" do req = Object.new url = Object.new response = mock Net::HTTPResponse cache = Restfulie::Client::Cache::Fake.new cache.put(url, req, response).should == response end end
Version data entries
5 entries across 5 versions & 2 rubygems