Permalink
Browse files

Futz with the time

  • Loading branch information...
1 parent d6ab858 commit 9d69ac4bb423bd3da0d19c49cb96546ebcd30874 @mike-burns mike-burns committed Nov 11, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −0 features/asking_for_a_date.feature
  2. +2 −2 features/step_definitions/time_steps.rb
  3. +1 −1 features/the_app.feature
@@ -23,6 +23,7 @@ Feature: Asking for a date
| Silvertone |
| Mike's Apartment |
And jobs are cleared
+ And I clear the text message history
Scenario: People ask for dates
When "18004688487" texts instalover with "new date"
@@ -1,8 +1,8 @@
Given 'the day and time is "$datetime"' do |datetime|
+ Timecop.return
Timecop.freeze(DateTime.parse(datetime))
end
Given %r{it is (\d+) hours? later} do |h|
- h = h.to_i
- Timecop.freeze(h.hours.from_now)
+ Timecop.freeze(h.to_i.hours.from_now)
end
View
@@ -6,7 +6,7 @@ Feature: The whole app
| 11111111111 | true | false | false | true | 11/06/1989 | 18 | 34 | red hair | Mike |
| 12222222222 | true | false | false | true | 10/20/1989 | 18 | 34 | black shirt | Jason |
| 18004688487 | false| true | true | false | 12/31/1977 | 14 | 22 | super hot | Emma |
- And the day and time is "October 16, 2010 8:00pm edt"
+ And the day and time is "October 16, 2010 8:00pm est"
And the following date suggestions exist:
| text |
| Silvertone |

0 comments on commit 9d69ac4

Please sign in to comment.