* Throw away old system * Add new system * Add new example files * Replace all calls * add the most important docs * Add Specs * rename disable_ssl_requirement to require_ssl * cloudfiles isn't used/called in our code * since community_spotlight.list is only used as enable flag replace it with such one and remove all legacy and irelevant codepaths around it * die if session secret is unset and on heroku * First basic infrastructure for version information
25 lines
683 B
Ruby
25 lines
683 B
Ruby
require 'spec_helper'
|
|
|
|
describe Configuration::Settings do
|
|
describe "#method_missing" do
|
|
subject { described_class.create }
|
|
|
|
it "delegates the call to a new proxy object" do
|
|
proxy = mock
|
|
Configuration::Proxy.should_receive(:new).and_return(proxy)
|
|
proxy.should_receive(:method_missing).with(:some_setting).and_return("foo")
|
|
subject.some_setting
|
|
end
|
|
end
|
|
|
|
[:lookup, :add_provider, :[]].each do |method|
|
|
describe "#{method}" do
|
|
subject { described_class.create }
|
|
|
|
it "delegates the call to #lookup_chain" do
|
|
subject.lookup_chain.should_receive(method)
|
|
subject.send(method)
|
|
end
|
|
end
|
|
end
|
|
end
|