spec/unit/environment/git_spec.rb in r10k-3.8.0 vs spec/unit/environment/git_spec.rb in r10k-3.9.0

- old
+ new

@@ -13,9 +13,25 @@ :ref => 'd026ea677116424d2968edb9cee8cbc24d09322b', } ) end + describe "initializing" do + subject do + described_class.new('name', '/dir', 'ref', { + :remote => 'url', + :ref => 'value', + :puppetfile_name => 'Puppetfile', + :moduledir => 'modules', + :modules => { }, + }) + end + + it "accepts valid base class initialization arguments" do + expect(subject.name).to eq 'name' + end + end + describe "storing attributes" do it "can return the environment name" do expect(subject.name).to eq 'myenv' end