spec/configoro/hash_spec.rb in configoro-1.1.0 vs spec/configoro/hash_spec.rb in configoro-1.2.0
- old
+ new
@@ -93,9 +93,14 @@
it "should not change the receiver if the file doesn't exist" do
subject << "example.yml"
subject.should be_empty
end
+
+ it "should preprocess YAML file as ERB" do
+ subject << "#{File.dirname __FILE__}/../data/config/environments/common/erb_test.yml"
+ subject.erb_test.sum.should == 2
+ end
end
describe "#deep_merge!" do
subject { Configoro::Hash.new }