spec/unit/berkshelf/config_spec.rb in berkshelf-2.0.0 vs spec/unit/berkshelf/config_spec.rb in berkshelf-2.0.1

- old
+ new

@@ -50,6 +50,15 @@ it "points to a location within it" do expect(Berkshelf::Config.path).to eq('/tmp/config.json') end end end + + describe "::set_path" do + subject(:set_path) { described_class.set_path("/tmp/other_path.json") } + + it "sets the #instance to nil" do + set_path + expect(described_class.instance_variable_get(:@instance)).to be_nil + end + end end