Skip to content

Commit

Permalink
allegro#325 allegro#314 Add tests for DryRepository to keep Coveralls…
Browse files Browse the repository at this point in the history
… happy.
  • Loading branch information
john-tipper committed Jan 29, 2020
1 parent 1a6445f commit acce3f9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ class DryRepositoryTest extends Specification {
0 * scm.tag(_)
}

def "should not create actual tags in scm on non-head"() {
when:
dryRepository.tagOnCommit("some-rev","dry_tag")

then:
0 * scm.tagOnCommit(_)
}

def "should not push anything to scm"() {
when:
dryRepository.push(ScmIdentity.defaultIdentityWithoutAgents(), new ScmPushOptions('dry-remote', false))
Expand Down

0 comments on commit acce3f9

Please sign in to comment.