Sha256: 0ad56ad1ec028855b68eb28e4c7af59c168b890ae674b90bb1937c519a204565
Contents?: true
Size: 743 Bytes
Versions: 5
Compression:
Stored size: 743 Bytes
Contents
require 'spec_helper' describe Restfulie::Client::Cache::Restrictions do it "should cache if the response may be cached" do request = Object.new response = mock(Net::HTTPResponse) response.should_receive(:may_cache?).and_return true Restfulie::Client::Cache::Restrictions.may_cache?(response).should be_true end it "should not cache if the response may not be cached" do request = Object.new response = mock(Net::HTTPResponse) response.should_receive(:may_cache?).and_return false Restfulie::Client::Cache::Restrictions.may_cache?(response).should be_false end it "should not cache for nil" do Restfulie::Client::Cache::Restrictions.may_cache?(nil).should be_false end end
Version data entries
5 entries across 5 versions & 2 rubygems