Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Date formatting problem #23

Open
wants to merge 1 commit into from

1 participant

@rehevkor5

Hey, feel free to pull this minor change that fixes errors when running rspec against a MySQL database that look like the following:

ActiveRecord::StatementInvalid in 'UsersController does not activate user with blank key'
Mysql::Error: Incorrect datetime value: '2010-12-05 04:11:14 -0600' for column 'remember_token_expires_at' at row 1:

-Shannon

@rehevkor5 rehevkor5 Fixed bad date string formatting which caused rspec errors that look …
…similar to:


ActiveRecord::StatementInvalid in 'name of test here'
Mysql::Error: Incorrect datetime value: '2010-12-05 04:11:14 UTC' for column 'remember_token_expires_at' at row 1:
54b90ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 4, 2010
  1. @rehevkor5

    Fixed bad date string formatting which caused rspec errors that look …

    rehevkor5 authored
    …similar to:
    
    
    ActiveRecord::StatementInvalid in 'name of test here'
    Mysql::Error: Incorrect datetime value: '2010-12-05 04:11:14 UTC' for column 'remember_token_expires_at' at row 1:
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  generators/authenticated/templates/spec/fixtures/users.yml
View
2  generators/authenticated/templates/spec/fixtures/users.yml
@@ -17,7 +17,7 @@ quentin:
salt: <%= salts[0] %> # SHA1('0')
crypted_password: <%= passwds[0] %> # 'monkey'
created_at: <%%= 5.days.ago.to_s :db %>
- remember_token_expires_at: <%%= 1.days.from_now.to_s %>
+ remember_token_expires_at: <%%= 1.days.from_now.to_s :db %>
remember_token: <%= make_fake_token %>
<% if options[:include_activation] -%>
activation_code:
Something went wrong with that request. Please try again.