spec/unit/action/deploy/module_spec.rb in r10k-2.5.5 vs spec/unit/action/deploy/module_spec.rb in r10k-2.6.0

- old
+ new

@@ -11,7 +11,20 @@ describe "initializing" do it "accepts an environment option" do described_class.new({environment: "production"}, []) end + + it "can accept a no-force option" do + described_class.new({:'no-force' => true}, []) + end + end + + describe "with no-force" do + + subject { described_class.new({ config: "/some/nonexistent/path", :'no-force' => true}, [] )} + + it "tries to preserve local modifications" do + expect(subject.force).to equal(false) + end end end