require 'spec_helper' require 'rad' require 'rad/spec/environment' describe 'Config' do before do rad.mode = :development, true @c = Rad::Config.new key: 'value', key2: 'value2' end after{rad.mode = :test, true} it "clone" do c = Rad::Config.new a: {b: :c} c2 = c.clone c.a.delete :b c.delete :a c2.a[:b].should == :c end end