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(__DIR__, '..', 'features', ARGV[0])
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 features/"
23
+ command_parts << "--require #{features_dir}"
23
24
 
24
25
  if ARGV.grep(/^\-\-pretty$/).size > 0
25
26
  command_parts << "--format pretty"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindsay Holmwood