spreewald 0.4.1 → 0.4.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.
- data/lib/spreewald/timecop_steps.rb +5 -5
- data/lib/spreewald_support/version.rb +1 -1
- metadata +4 -4
@@ -10,16 +10,16 @@ if defined?(Timecop)
|
|
10
10
|
|
11
11
|
# Example:
|
12
12
|
#
|
13
|
-
# Given the date is
|
14
|
-
# Given the time is
|
15
|
-
When /^the (?:date|time) is "(\d{4}-\d{2}-\d{2}(?: \d{1,2}:\d{2})?)"
|
13
|
+
# Given the date is 2012-02-10
|
14
|
+
# Given the time is 2012-02-10 13:40
|
15
|
+
When /^the (?:date|time) is "?(\d{4}-\d{2}-\d{2}(?: \d{1,2}:\d{2})?)"?$/ do |time|
|
16
16
|
Timecop.travel Time.parse(time)
|
17
17
|
end
|
18
18
|
|
19
19
|
# Example:
|
20
20
|
#
|
21
|
-
# Given the time is
|
22
|
-
When /^the time is "(\d{1,2}:\d{2})"
|
21
|
+
# Given the time is 13:40
|
22
|
+
When /^the time is "?(\d{1,2}:\d{2})"?$/ do |time|
|
23
23
|
Timecop.travel Time.parse(time) # date will be today
|
24
24
|
end
|
25
25
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 2
|
10
|
+
version: 0.4.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Kraze
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-02-11 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|