spec/kookaburra_spec.rb in kookaburra-0.16.0 vs spec/kookaburra_spec.rb in kookaburra-0.16.1
- old
+ new
@@ -59,6 +59,22 @@
it 'returns a frozen object' do
k = Kookaburra.new
k.get_data(:foos).should be_frozen
end
end
+
+ describe '.configuration' do
+ it 'returns the assigned value' do
+ begin
+ old_config = Kookaburra.configuration
+ Kookaburra.configuration = :test_configuration
+ Kookaburra.configuration.should == :test_configuration
+ ensure
+ Kookaburra.configuration = old_config
+ end
+ end
+
+ it 'defaults to an empty hash' do
+ Kookaburra.configuration.should == {}
+ end
+ end
end