Skip to content

Commit 606747f

Browse files
authored
Fix the test that depends on the time helper (#513)
1 parent 755b687 commit 606747f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jbuilder_template_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class JbuilderTemplateTest < ActiveSupport::TestCase
159159
end
160160

161161
test "object fragment caching with expiry" do
162-
travel_to "2018-05-12 11:29:00 -0400"
162+
travel_to Time.iso8601("2018-05-12T11:29:00-04:00")
163163

164164
render <<-JBUILDER
165165
json.cache! "cache-key", expires_in: 1.minute do

0 commit comments

Comments
 (0)