Sha256: 092e525119d20f2774b105f12ff6d24cf4dbeb57adf1c834c4a28b08f036f9c0
Contents?: true
Size: 688 Bytes
Versions: 3
Compression:
Stored size: 688 Bytes
Contents
Given /^the remote repository has additional commits/ do cmd = [ 'cd "' + fake_git_remote + '"', 'touch myfile.txt', 'git add --force myfile.txt', 'git commit --message "Add new file"', ].join(' && ') %x|#{cmd}| end Then /^the git remote should( not)? have the commit "(.+)"$/ do |negate, message| commits = git_commits(fake_git_remote) if negate expect(commits).to_not include(message) else expect(commits).to include(message) end end Then /^the git remote should( not)? have the tag "(.+)"$/ do |negate, tag| tags = git_tags(fake_git_remote) if negate expect(tags).to_not include(tag) else expect(tags).to include(tag) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stove-2.0.0 | features/step_definitions/git_steps.rb |
stove-2.0.0.beta.2 | features/step_definitions/git_steps.rb |
stove-2.0.0.beta.1 | features/step_definitions/git_steps.rb |