ExtractsPath: Use ref_names instead of branches+tags
This commit is contained in:
parent
e25ddca0c4
commit
3606a14889
2 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue