hq-dev 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c449731e4e900e2fb89d6fb076afadcd8ad0824d
4
- data.tar.gz: 1c0e80f7bdfbd5602351502bf4e1b1b07f1856f9
3
+ metadata.gz: 76a747b156b40a50334430a5fdb58c2adb9d248e
4
+ data.tar.gz: 579e97eec4e6a7dd6315230381ab079a9ab2d995
5
5
  SHA512:
6
- metadata.gz: f3dbe100639c1b2a6310658559ecdc118b2efcf15e7a0f938c6ea214a2ab5e522dd5de8c81033da6450aa605f26d6a02038ae859f2710d616d9b41b6f1be81f7
7
- data.tar.gz: 1ddab25ceae571aede9cf4c2c10cff097407af651ddee6b995cfac18e9d2db89868a00b579a1b65bc89eb7be6778b1e43e13e5d6e61b2fc34304baba4af86591
6
+ metadata.gz: 59f562e5954216c2e9ff64f50379665775a15e648b077fbdd4969753fa27c0741feaf2ce982a33f95b3317cfd28046f96cd2124ea5d5490d881b0dcd049b9ab0
7
+ data.tar.gz: 0d2b0b22dc04103ee353060505d1d0ec368746dc050a9fec63ec3a29ee3441fd9c70ff224f6c5eb4203050439dbed021ec70bc84ce79f8aa172273e9d0a24617
data/data/gem-versions CHANGED
@@ -1,7 +1,7 @@
1
1
  bson_ext 1.8.5
2
2
  capybara 2.0.2
3
3
  cucumber 1.3.1
4
- hq-dev 0.0.7
4
+ hq-dev 0.0.8
5
5
  hq-engine 0.0.3
6
6
  hq-tools 0.8.0
7
7
  hq-web 0.0.2
@@ -54,3 +54,22 @@ Feature: Time manipulation
54
54
  1 scenario (1 passed)
55
55
  2 steps (2 passed)
56
56
  """
57
+
58
+ Scenario: Override with ymd hms
59
+
60
+ Given a file "features/test.feature":
61
+ """
62
+ Feature:
63
+ Scenario:
64
+ Given the time is 1970-01-02 10:17:36
65
+ Then the time should be 123456
66
+ """
67
+
68
+ When I run "cucumber"
69
+
70
+ Then the exit status should be 0
71
+ And the output should contain:
72
+ """
73
+ 1 scenario (1 passed)
74
+ 2 steps (2 passed)
75
+ """
@@ -1,4 +1,5 @@
1
- require 'cucumber/rspec/doubles'
1
+ require "cucumber/rspec/doubles"
2
+ require "time"
2
3
 
3
4
  Before do
4
5
 
@@ -21,10 +22,10 @@ Given /^the time is (.+)$/ do
21
22
 
22
23
  case time_str
23
24
 
24
- # when /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/
25
+ when /^(\d{4}-\d{2}-\d{2}) (\d{2}:\d{2}:\d{2})$/
25
26
 
26
- # @time_override =
27
- # Time.parse time_str
27
+ @time_override =
28
+ Time.parse "#{$1}T#{$2}Z"
28
29
 
29
30
  when /^(\d+)$/
30
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hq-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Pharaoh