cucumber-nagios 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,10 +6,11 @@ unless ARGV[0]
|
|
6
6
|
end
|
7
7
|
|
8
8
|
__DIR__ = File.expand_path(File.dirname(__FILE__))
|
9
|
+
features_dir = File.expand_path(File.join(__DIR__, '..', 'features'))
|
9
10
|
|
10
11
|
feature = ARGV[0]
|
11
12
|
unless File.exists?(feature)
|
12
|
-
feature = File.join(
|
13
|
+
feature = File.join(features_dir, ARGV[0])
|
13
14
|
end
|
14
15
|
|
15
16
|
unless File.exist?(feature)
|
@@ -19,7 +20,7 @@ end
|
|
19
20
|
|
20
21
|
command_parts = []
|
21
22
|
command_parts << "#{__DIR__}/cucumber"
|
22
|
-
command_parts << "--require
|
23
|
+
command_parts << "--require #{features_dir}"
|
23
24
|
|
24
25
|
if ARGV.grep(/^\-\-pretty$/).size > 0
|
25
26
|
command_parts << "--format pretty"
|