Sha256: 85c82f6e2cc443041c0b6ceea4aa8ae0e23e2d18b18f827045de18f4e3414b18
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
Then /^git repository is clean$/ do assert { git.status(:porcelain => true) == '' } end Then /^git history has (\d+) commit(?:s)?$/ do |ncommits| assert { git.rev_list(:all => true).lines.count == ncommits.to_i } end Then /^I\'m on "(.*?)" branch$/ do |expected_branch| assert { git.rev_parse({:abbrev_ref => true}, 'HEAD').strip == expected_branch } end Then /^no other branch exists$/ do assert { git.branch.lines.count == 1 } end Then /^branch "(.*?)" exists$/ do |branch_name| assert { git.heads.include?(branch_name) } end Then /^branch "(.*?)" does not exist$/ do |branch_name| deny { git.heads.include?(branch_name) } end Then /^tag "(.*?)" exists$/ do |tag_name| assert { git.tags.include?(tag_name) } end Then /^tag "(.*?)" does not exist$/ do |tag_name| deny { git.tags.include?(tag_name) } end Then /^tag matching (#{PATTERN}) exists$/ do |pat| assert { git.tags.any? { |t| t =~ pat } } end Then /^tag matching (#{PATTERN}) does not exist$/ do |pat| deny { git.tags.any? { |t| t =~ pat } } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vendorificator-0.2.0 | features/step_definitions/git.rb |