Sha256: 25bb8e35a70dc2e655f3c1b73bffc4f984888a67ad20d0dee8e74df78f45fd91
Contents?: true
Size: 854 Bytes
Versions: 156
Compression:
Stored size: 854 Bytes
Contents
require 'spec_helper' require 'puppet/indirector/file_bucket_file/selector' require 'puppet/indirector/file_bucket_file/file' require 'puppet/indirector/file_bucket_file/rest' describe Puppet::FileBucketFile::Selector do %w[head find save search destroy].each do |method| describe "##{method}" do it "should proxy to rest terminus for https requests" do request = double('request', :protocol => 'https') expect_any_instance_of(Puppet::FileBucketFile::Rest).to receive(method).with(request) subject.send(method, request) end it "should proxy to file terminus for other requests" do request = double('request', :protocol => 'file') expect_any_instance_of(Puppet::FileBucketFile::File).to receive(method).with(request) subject.send(method, request) end end end end
Version data entries
156 entries across 156 versions & 1 rubygems