Sha256: 8a8b632da0b014abfe76d48ffd25bf045540b4bea2cebc6a16878e890d94c8df
Contents?: true
Size: 763 Bytes
Versions: 8
Compression:
Stored size: 763 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "SanUltari::Config::Store" do before :each do @fixture = SanUltari::Config::Store.new end it "should initialze" do SanUltari::Config::Store.new end it "should set plain value" do expected = 'test' @fixture.a = expected @fixture.a.should be_equal expected end it "should set tree value" do expected = 'test' @fixture.a.b = expected @fixture.a.should_not be_nil @fixture.a.b.should be_equal expected end it "should set tree value with block" do expected = 'test' @fixture.a do |conf| conf.b = expected conf.c = 3 end @fixture.a.b.should be_equal expected @fixture.a.c.should be_equal 3 end end
Version data entries
8 entries across 8 versions & 1 rubygems