spec/unit/deployment/environment_spec.rb in r10k-1.0.0 vs spec/unit/deployment/environment_spec.rb in r10k-1.1.0rc1

- old
+ new

@@ -9,9 +9,14 @@ it 'uses the ref as the default dirname' do subject = described_class.new(ref, remote, '/tmp') subject.dirname.should == 'master' end + it 'uses the ref and a provided source name in the default dirname' do + subject = described_class.new(ref, remote, '/tmp', nil, "the") + subject.dirname.should == 'the_master' + end + it 'allows a specific dirname to be set' do subject = described_class.new(ref, remote, '/tmp', 'sourcename_master') subject.dirname.should == 'sourcename_master' end end