spec/unit/berkshelf/init_generator_spec.rb in berkshelf-0.3.1 vs spec/unit/berkshelf/init_generator_spec.rb in berkshelf-0.3.2

- old
+ new

@@ -6,11 +6,11 @@ let(:target_root) { tmp_path.join("some_cookbook") } context "with default options" do before do - generator = subject.new([], :path => target_root) + generator = subject.new([target_root]) capture(:stdout) { generator.invoke_all } end specify do target_root.should have_structure { @@ -20,24 +20,24 @@ end end context "with a .chefignore" do before do - generator = subject.new([], :path => target_root, :chefignore => true) + generator = subject.new([target_root], chefignore: true) capture(:stdout) { generator.invoke_all } end specify do target_root.should have_structure { file "Berksfile" - file ".chefignore" + file "chefignore" } end end context "with a metadata entry in the Berksfile" do before do - generator = subject.new([], :path => target_root, :metadata_entry => true) + generator = subject.new([target_root], metadata_entry: true) capture(:stdout) { generator.invoke_all } end specify do target_root.should have_structure {