Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-10-04 22:13:52 +0400
committerRobert Speicher <rspeicher@gmail.com>2012-10-04 22:13:52 +0400
commit3606a1488952008426b1be870e62804b22fe8a61 (patch)
tree6893f6b0cc6cb51b202ffb8d822107dc733d8585 /spec/lib/extracts_path_spec.rb
parente25ddca0c462522703af93822863023f4a754390 (diff)
ExtractsPath: Use ref_names instead of branches+tags
Diffstat (limited to 'spec/lib/extracts_path_spec.rb')
-rw-r--r--spec/lib/extracts_path_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/lib/extracts_path_spec.rb b/spec/lib/extracts_path_spec.rb
index 3ee729c93e8..cf4220175a7 100644
--- a/spec/lib/extracts_path_spec.rb
+++ b/spec/lib/extracts_path_spec.rb
@@ -7,8 +7,7 @@ describe ExtractsPath do
before do
@project = project
- project.stub(:branches).and_return([stub(name: 'master'), stub(name: 'foo/bar/baz')])
- project.stub(:tags).and_return([stub(name: 'master'), stub(name: 'master')])
+ project.stub(:ref_names).and_return(['master', 'foo/bar/baz', 'v1.0.0', 'v2.0.0'])
end
describe '#extract_ref' do