spec/figaro/application_spec.rb in figaro-1.1.0 vs spec/figaro/application_spec.rb in figaro-1.1.1
- old
+ new
@@ -153,9 +153,17 @@
YAML
expect(application.configuration).to eq("foo" => "BAR")
end
+ it "handles an empty environment block" do
+ application = Application.new(path: yaml_to_path("development:"))
+
+ expect {
+ application.configuration
+ }.not_to raise_error
+ end
+
it "follows a changing default path" do
path_1 = yaml_to_path("foo: bar")
path_2 = yaml_to_path("foo: baz")
application = Application.new