Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions test/mini_racer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1106,9 +1106,13 @@ def test_function_property
def test_dates_from_active_support
require "active_support"
require "active_support/time"
context = MiniRacer::Context.new
Time.zone = "UTC"
begin
Time.zone = "UTC"
rescue TZInfo::DataSourceNotFound
skip "no timezone data" # happens on the musl buildbots
end
time = Time.current
context = MiniRacer::Context.new
context.attach("f", proc { time })
assert_in_delta time.to_f, context.call("f").to_f, 0.001
end
Expand Down
Loading