spec/shared-examples/puppetfile-action.rb in r10k-2.5.5 vs spec/shared-examples/puppetfile-action.rb in r10k-2.6.0
- old
+ new
@@ -11,7 +11,29 @@
end
it "accepts the :moduledir option" do
described_class.new({moduledir: "/some/nonexistent/path/modules"}, [])
end
+
+ end
+end
+
+shared_examples_for "a puppetfile install action" do
+ describe "initializing" do
+ it "accepts the :root option" do
+ described_class.new({root: "/some/nonexistent/path"}, [])
+ end
+
+ it "accepts the :puppetfile option" do
+ described_class.new({puppetfile: "/some/nonexistent/path/Puppetfile"}, [])
+ end
+
+ it "accepts the :moduledir option" do
+ described_class.new({moduledir: "/some/nonexistent/path/modules"}, [])
+ end
+
+ it "accepts the :force option" do
+ described_class.new({force: true}, [])
+ end
+
end
end