Sha256: 508dc30fb2246e2d48817a026cd5b94f7edda5c724dce4a7b3387d5fa047d91a
Contents?: true
Size: 927 Bytes
Versions: 1
Compression:
Stored size: 927 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 Then(/^the output should contain correct version$/) do require 'clenver/version' assert_partial_output(Clenver::VERSION, all_output) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clenver-0.1.13 | features/step_definitions/clenver_steps.rb |