Sha256: cd39eaf2a56e8c1214bd95c7dc737688ecaf2ac4790d9a5221a0bd972f7ad255
Contents?: true
Size: 638 Bytes
Versions: 3
Compression:
Stored size: 638 Bytes
Contents
require 'spec_helper' describe AppConfiguration do describe ".for" do let(:config_name) { :spec } before(:each) { AppConfiguration.for(config_name) } it 'registers a new Config object' do AppConfiguration[config_name].should_not be_nil end it 'sets the config_file_name attribute based on the config name' do AppConfiguration[config_name].instance_variable_get("@config_file_name").should eq ".#{config_name}.yml" end it 'sets the prefix attribute based on the config name' do AppConfiguration[config_name].instance_variable_get("@prefix").should eq config_name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
app_configuration-0.0.3 | spec/app_configuration_spec.rb |
app_configuration-0.0.2 | spec/app_configuration_spec.rb |
app_configuration-0.0.1 | spec/app_configuration_spec.rb |