spec/grape/app_spec.rb in grape-app-0.3.16 vs spec/grape/app_spec.rb in grape-app-0.3.17
- old
+ new
@@ -18,9 +18,10 @@
expect(subject).to be < Grape::API
end
it 'should init with default time zone' do
expect(Time.zone.name).to eq("UTC")
+ expect(Thread.new { Time.zone }.value.name).to eq("UTC")
end
it 'should configure i18n' do
expect(I18n.load_path).to include(subject.root.join("config", "locales", "en.yml").to_s)
expect(I18n.default_locale).to eq(:en)