##// END OF EJS Templates
Compare timestamps in seconds (#21058)....
Jean-Philippe Lang -
r14360:7fd88d706f66
parent child
Show More
@@ -38,8 +38,8 class SessionsControllerTest < ActionController::TestCase
38 get :index, {}, {:user_id => 2, :tk => token.value}
38 get :index, {}, {:user_id => 2, :tk => token.value}
39 assert_response :success
39 assert_response :success
40 token.reload
40 token.reload
41 assert_equal created, token.created_on
41 assert_equal created.to_i, token.created_on.to_i
42 assert_not_equal created, token.updated_on
42 assert_not_equal created.to_i, token.updated_on.to_i
43 assert token.updated_on > created
43 assert token.updated_on > created
44 end
44 end
45
45
General Comments 0
You need to be logged in to leave comments. Login now