-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackages.rb
More file actions
35 lines (29 loc) · 993 Bytes
/
Copy pathpackages.rb
File metadata and controls
35 lines (29 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Given /^the gems server is running$/ do
self.gemserver_thread = Thread.new do
trap("INT") do
gemserver.shutdown
gemserver_thread.join
end
gemserver.start
end
end
Given /^that I have the (.+) package system installed$/ do |package_system|
unless package_system_available?(package_system)
pending "This Cucumber feature will not execute, as it is missing the #{package_system} packaging system."
end
end
Then /^there should be a binary on the path called '(.+)'$/ do |binary_name|
binary_name.strip!
result = `which #{binary_name}`
result.should_not =~ /not found/
end
Then /^there should not be a binary on the path called '(.+)'$/ do |binary_name|
binary_name.strip!
result = `which #{binary_name}`.strip
unless result.empty?
result.should =~ /not found/
end
end
Then /^the gem '(.+)' version '(.+)' should be installed$/ do |gem_name, version|
Then "a file named 'installed-gems/gems/#{gem_name}-#{version}' should exist"
end