cucumber-timecop 0.0.1 → 0.0.3

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: 8f49e66b5e22ce7132876354822af5390c8c6ac3
4
- data.tar.gz: e36ac115da62bec5f9a8acf184a6dba311c1cb5b
3
+ metadata.gz: 2368f98985a0c1ebeba787a4d844c4ce282e76fe
4
+ data.tar.gz: 443daf30435a4fac5dcbc996ff77f3072b4cfe25
5
5
  SHA512:
6
- metadata.gz: 03d32923d2da24628328a1a0a87bd6f07846155525fdcd3466def076efc2ef64254498dad08b5fbfcc9eb342b54dedd3177fc09f26fb0406a43ad51a45ca7af0
7
- data.tar.gz: a8079d1f64aff31e639643d1886ca9d30bd901658629d66ed6d1fb799578cea4286878cb2b717c9b0a5f243b4d39b0c1cba09c3a0393294a146aedf78ac93c2d
6
+ metadata.gz: 8aa6dea5cb9f4f84ea678a54363fa04cc312bde679b6e0154d51d8f345eaaa9c8e37eb4ca6b12a563ea7cdb1ed62d64e3b6422a9ca7a3ac2202bcc5514acd239
7
+ data.tar.gz: 2deb798a380fdaa8059770b1e37fcb61d320a31269cb2b068a1746e9b23fb80342ecfe9593a246988c2c64ca3bc5cd325d6e0e5eeb7360407fc1a94cb53c0cea
data/README.md CHANGED
@@ -6,7 +6,7 @@ This gem install [timecop](https://github.com/travisjeffery/timecop) and [chroni
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'cucumber-timecop'
9
+ gem 'cucumber-timecop', :require => false
10
10
 
11
11
  And then execute:
12
12
 
@@ -18,6 +18,10 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
+ Add the following line to the features/support/env.rb:
22
+
23
+ require 'cucumber/timecop'
24
+
21
25
  When this gem is installed, you can use the following cucumber steps:
22
26
 
23
27
  Given it is currently 2 days ago
@@ -41,6 +41,11 @@ Given /^(?:I|we) jump in our Delorean and return to the present$/ do
41
41
  Timecop.return
42
42
  end
43
43
 
44
+ Before do
45
+ # Ensure Chronic is using the same time zone
46
+ Chronic.time_class = Time.zone
47
+ end
48
+
44
49
  After do
45
50
  Timecop.return
46
51
  end
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module Timecop
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-timecop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - zedtux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-23 00:00:00.000000000 Z
11
+ date: 2013-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber