Sha256: 8e59cb9179786fdf47e7ad9ec61efff1a5d687d5293105d2978780bb917557ea

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

gem "buzzcore"; require 'buzzcore'
require_paths '.','../lib'
require 'tweaks'
#require File.join(File.dirname(__FILE__),'test_helper')

describe "tweaks" do
	it "create config and access" do
		
		default_config = {
			:name => String,
			:age => 52,
			:number_string => String,
			:a_symbol => Symbol
		}
		later_config = {
			:number_string => 5, :name => 'Roger', :a_symbol => 'apple'
		}		
		result_config = TweakConfig.new(default_config,later_config)
		result_config.should == {
			:name => 'Roger',
			:number_string => '5',
			:age => 52,
			:a_symbol => :apple
		}
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tweaks-0.2.0 test/config_spec.rb
tweaks-0.1.0 test/config_spec.rb