hypercuke 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2d3d8c4332058cc641a19baeeb7ab65604b518c
4
- data.tar.gz: a53670cee898b72e1648af585fc06116866632a6
3
+ metadata.gz: 8718e028e9fc3e18815005c98d43e54433b2784e
4
+ data.tar.gz: 5cfb54b6f00d37b2bd919bae027dabe79e78c251
5
5
  SHA512:
6
- metadata.gz: 74e341f88dae4ca3e27bd159a7fddd9516b4f32329d4e94506181faa06f57f768e6dd4e9469d33cdd4f875043f81831d68070d53dfa2c29c0351ab8dbfed5c33
7
- data.tar.gz: 9491999783bf584e615c5591f661470322d703f89a803678b61c3e66ee9b7c978b2ece09614c42146a28ab416700712eef48f1ee78df94118be43e7e02af18ea
6
+ metadata.gz: c427ebc439719d7449110d1e627e5b0d270c4b096d6fe7c36d261dcb76f641bd4edcfde390a0d7a9c0754906efd2df9a7cbfbeb2ce7f304048f5bf597e8ae071
7
+ data.tar.gz: 1ba0a1bdba4922eb41fb6e02e72802eae1ca251cd04b87b39a2420e8fc230ee3f289e5baa674f8d9421fa711b5d9447cf6e29333663978b33fe39405b5156760
@@ -39,7 +39,7 @@ module Hypercuke
39
39
  mode = [options[:mode].to_s.strip, 'ok'].reject {|s| s =~ /^\s*$/ }.first
40
40
 
41
41
  if 'ok' == mode
42
- "--tags @#{layer} --tags @#{layer}_ok"
42
+ "--tags @#{layer},@#{layer}_ok"
43
43
  else
44
44
  "--tags @#{layer}_#{mode}"
45
45
  end
@@ -1,7 +1,7 @@
1
1
  module Hypercuke
2
2
  MAJOR = 0
3
3
  MINOR = 5
4
- REVISION = 1
4
+ REVISION = 2
5
5
 
6
6
  VERSION = [ MAJOR, MINOR, REVISION ].join('.')
7
7
  end
@@ -6,20 +6,20 @@ require 'spec_helper'
6
6
  (Assume that the --require business is handled in cucumber.yml.)
7
7
 
8
8
  Some sample HCu commands and their expected outputs:
9
- $ hcu core # cucumber --tags @core
10
- $ hcu model # cucumber --tags @model
9
+ $ hcu core # cucumber --tags @core,@core_ok
10
+ $ hcu model # cucumber --tags @model,@model_ok
11
11
  $ hcu core wip # cucumber --tags @model_wip --profile wip
12
- $ hcu core ok # cucumber --tags @core
12
+ $ hcu core ok # cucumber --tags @core,@core_ok
13
13
 
14
14
  If the user specifies a --profile tag, assume they know what they're doing...
15
- $ hcu core --profile emperor_penguin # cucumber --tags @core --profile emperor_penguin
15
+ $ hcu core --profile emperor_penguin # cucumber --tags @core,@core_ok --profile emperor_penguin
16
16
  $ hcu core wip --profile emperor_penguin # cucumber --tags @core_wip --profile emperor_penguin
17
17
  ...even if they use the "-p" tag instead...
18
- $ hcu core -p emperor_penguin # cucumber --tags @core --profile emperor_penguin
18
+ $ hcu core -p emperor_penguin # cucumber --tags @core,@core_ok --profile emperor_penguin
19
19
  $ hcu core wip -p emperor_penguin # cucumber --tags @core_wip --profile emperor_penguin
20
20
 
21
21
  Everything else should just get passed through to Cucumber unmangled.
22
- $ hcu core --wibble # cucumber --tags @core --wibble
22
+ $ hcu core --wibble # cucumber --tags @core,@core_ok --wibble
23
23
 
24
24
  Also, the '-h' flag should display HCu help (TBD)
25
25
  ( TODO: WRITE THIS EXAMPLE? )
@@ -48,13 +48,13 @@ expected: #{expected_output.inspect}
48
48
  end
49
49
 
50
50
  it "ignores the 0th 'hcu' argument in its various forms (does this even happen?)" do
51
- expect_command_line 'hcu core', "#{cmd_base} --tags @core --tags @core_ok"
52
- expect_command_line 'bin/hcu core', "#{cmd_base} --tags @core --tags @core_ok"
51
+ expect_command_line 'hcu core', "#{cmd_base} --tags @core,@core_ok"
52
+ expect_command_line 'bin/hcu core', "#{cmd_base} --tags @core,@core_ok"
53
53
  end
54
54
 
55
55
  it "treats the first argument as a layer name and adds the appropriate --tags flag" do
56
- expect_command_line 'core', "#{cmd_base} --tags @core --tags @core_ok"
57
- expect_command_line 'model', "#{cmd_base} --tags @model --tags @model_ok"
56
+ expect_command_line 'core', "#{cmd_base} --tags @core,@core_ok"
57
+ expect_command_line 'model', "#{cmd_base} --tags @model,@model_ok"
58
58
  end
59
59
 
60
60
  it "barfs if the layer name is not given" do
@@ -63,7 +63,7 @@ expected: #{expected_output.inspect}
63
63
  end
64
64
 
65
65
  it "treats the second argument as a mode (assuming it doesn't start with a dash)" do
66
- expect_command_line 'core ok', "#{cmd_base} --tags @core --tags @core_ok"
66
+ expect_command_line 'core ok', "#{cmd_base} --tags @core,@core_ok"
67
67
  end
68
68
 
69
69
  it "adds '--profile wip' when the mode is 'wip'" do
@@ -71,13 +71,13 @@ expected: #{expected_output.inspect}
71
71
  end
72
72
 
73
73
  it "ignores most other arguments and just hands them off to Cucumber" do
74
- expect_command_line 'core --wibble', "#{cmd_base} --tags @core --tags @core_ok --wibble"
75
- expect_command_line 'core ok --wibble', "#{cmd_base} --tags @core --tags @core_ok --wibble"
74
+ expect_command_line 'core --wibble', "#{cmd_base} --tags @core,@core_ok --wibble"
75
+ expect_command_line 'core ok --wibble', "#{cmd_base} --tags @core,@core_ok --wibble"
76
76
  end
77
77
 
78
78
  it "doesn't override a profile if the user explicitly specifies one (using either -p or --profile)" do
79
- expect_command_line 'core --dingbat --profile emperor_penguin', "#{cmd_base} --tags @core --tags @core_ok --profile emperor_penguin --dingbat"
80
- expect_command_line 'core --dingbat -p emperor_penguin', "#{cmd_base} --tags @core --tags @core_ok --profile emperor_penguin --dingbat"
79
+ expect_command_line 'core --dingbat --profile emperor_penguin', "#{cmd_base} --tags @core,@core_ok --profile emperor_penguin --dingbat"
80
+ expect_command_line 'core --dingbat -p emperor_penguin', "#{cmd_base} --tags @core,@core_ok --profile emperor_penguin --dingbat"
81
81
  end
82
82
 
83
83
  it "doesn't override a user-specified profile, even in wip mode when it would normally use the wip profile" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hypercuke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Livingston-Gray