Sha256: 08f4f271c63050e2f08f496621f4f6a2dfec1e33860b013537ec9fae6caa945b
Contents?: true
Size: 794 Bytes
Versions: 3
Compression:
Stored size: 794 Bytes
Contents
require 'spec_helper.rb' class Hue::Config::AbstractTest < Hue::Config::Abstract private def add_self_to_yaml(yaml) yaml[name] = { 1 => :test} end end describe Hue::Config::Abstract do before(:all) do create_test_application_config end context 'given an new config' do config = described_class.new('test', TEST_CONFIG_APPLICATION_PATH) it 'should report the values' do config.name == 'test' config.path == TEST_CONFIG_APPLICATION_PATH end it 'should allow writing the new config to file' do config.write YAML.load_file(config.path)['test'].should be_a(Hash) end it 'should allow deleting that named config from the file' do config.delete YAML.load_file(config.path)['test'].should be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hue-lib-0.7.1 | spec/hue/config/abstract_spec.rb |
hue-lib-0.7.0 | spec/hue/config/abstract_spec.rb |
hue-lib-0.6.0 | spec/hue/config/abstract_spec.rb |