Sha256: 6a457bda2788262156dc5e59596a6173940b8dffc497f57bd0ce5158096e5ec5
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
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 Then(/^the following absolute path should exist: "(.*?)"$/) do |arg1| out = %x[echo #{arg1}].strip File.should be_directory(out) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clenver-0.1.15 | features/step_definitions/clenver_steps.rb |
clenver-0.1.14 | features/step_definitions/clenver_steps.rb |