From 54b90ffd15be3fed65192ab9bdcb2205bff5db08 Mon Sep 17 00:00:00 2001 From: rehevkor5 Date: Sat, 4 Dec 2010 02:29:24 -0800 Subject: [PATCH] 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: --- generators/authenticated/templates/spec/fixtures/users.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/authenticated/templates/spec/fixtures/users.yml b/generators/authenticated/templates/spec/fixtures/users.yml index 3d711fe..62d2a16 100644 --- a/generators/authenticated/templates/spec/fixtures/users.yml +++ b/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: