2021-09-01 14:08:49 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe TimeZoneHelper, '(JavaScript fixtures)' do
|
|
|
|
include JavaScriptFixturesHelpers
|
|
|
|
include TimeZoneHelper
|
|
|
|
|
|
|
|
let(:response) { @timezones.sort_by! { |tz| tz[:name] }.to_json }
|
|
|
|
|
2021-12-06 19:14:07 -05:00
|
|
|
%I[short abbr full].each do |format|
|
|
|
|
it "timezones/#{format}.json" do
|
|
|
|
@timezones = timezone_data(format: format)
|
|
|
|
end
|
2021-09-01 14:08:49 -04:00
|
|
|
end
|
|
|
|
end
|