Sha256: 661c09d9099663976f707234f4aaeaa190ab2d6eb49f8e551f5142a4aaddeed1
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
require 'rspec/expectations' require 'clenver/link' When /^I get help for "([^"]*)"$/ do |app_name| @app_name = app_name step %(I run `#{app_name} help`) end # Add more step definitions here Then(/^the following links should exist:$/) do |files| files.raw.map{|file_row| file_row[0]}.each do |f| if /\$\w+/.match(f) f_path = %x[ echo #{f}].strip elsif f_path = "tmp/aruba/" + f end File.should be_symlink(f_path) end end Then(/^the following remote (?:uris|branches) should be connected in "(.*?)":$/) do |arg1, table| table.raw.map{|repo| repo[0]}.each do |r| curr_pwd = Dir::pwd Dir::chdir("tmp/aruba" + "/" + arg1) res = %x[git remote -v| grep #{r}|wc -l].strip Dir::chdir(curr_pwd) res.to_i.should eq(2) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clenver-0.1.12 | features/step_definitions/clenver_steps.rb |
clenver-0.1.10 | features/step_definitions/clenver_steps.rb |