* 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
18 lines
588 B
Ruby
18 lines
588 B
Ruby
require 'spec_helper'
|
|
|
|
describe Configuration::Provider::Base do
|
|
subject { described_class.new }
|
|
describe "#lookup" do
|
|
it "calls #lookup_path with the setting as array" do
|
|
subject.should_receive(:lookup_path).with(["foo", "bar"]).and_return("something")
|
|
subject.lookup("foo.bar").should == "something"
|
|
end
|
|
|
|
it "raises SettingNotFoundError if the #lookup_path returns nil" do
|
|
subject.should_receive(:lookup_path).and_return(nil)
|
|
expect {
|
|
subject.lookup("bla")
|
|
}.to raise_error Configuration::SettingNotFoundError
|
|
end
|
|
end
|
|
end
|