We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb2ccc commit 82b2aedCopy full SHA for 82b2aed
test/mini_racer_test.rb
@@ -1106,9 +1106,13 @@ def test_function_property
1106
def test_dates_from_active_support
1107
require "active_support"
1108
require "active_support/time"
1109
- context = MiniRacer::Context.new
1110
- Time.zone = "UTC"
+ begin
+ Time.zone = "UTC"
1111
+ rescue TZInfo::DataSourceNotFound
1112
+ skip "no timezone data" # happens on the musl buildbots
1113
+ end
1114
time = Time.current
1115
+ context = MiniRacer::Context.new
1116
context.attach("f", proc { time })
1117
assert_in_delta time.to_f, context.call("f").to_f, 0.001
1118
end
0 commit comments