spec/unit/git/repository_spec.rb in r10k-1.3.0 vs spec/unit/git/repository_spec.rb in r10k-1.3.1

- old
+ new

@@ -19,6 +19,16 @@ 'cache' => '/home/user/.r10k/git/git@github.com-org-org-modules', 'origin' => 'git@github.com:org/org-modules', }) end end + + describe "tags" do + let(:tags) { %w[0.1.1 0.1.2 0.1.3 0.1.4 0.2.0 0.3.0 2.0.0] } + let(:output) { tags.map {|x| x + "\n"}.join } + + it "returns a list of tags for this repo" do + expect(subject).to receive(:git).with(%w[tag -l], anything).and_return(double(:stdout => output)) + expect(subject.tags).to eq(tags) + end + end end