spec/profigure_spec.rb in profigure-0.0.1 vs spec/profigure_spec.rb in profigure-0.0.2

- old
+ new

@@ -34,10 +34,17 @@ config.array.size.should == 2 config.array[1].should == "two" end + it "should properly handle inline arrays" do + config = Profigure.load @config_dir, "arrays" + + config.inline_array.size.should == 3 + config.inline_array.last.should == "five" + end + it "should allow overriding after load" do config = Profigure.load @config_dir, "test" config.foo = "bar" config.foo.should == "bar" @@ -45,7 +52,13 @@ it "should allow reading via hash notation" do config = Profigure.load @config_dir, "test" config[:foo].should == "bar" + end + + it "should allow template to contain erb" do + config = Profigure.load @config_dir, "erb" + + config[:user].should == ENV["USER"] end end