Skip to content

Commit fe236a8

Browse files
committed
silenced rubocop styling error for timezone setting in spec
1 parent ed3ef91 commit fe236a8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

spec/models/closure_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ def compare_end_dates(a, b)
165165

166166
after do
167167
ENV['TZ'] = env_tz_actual
168+
# rubocop:disable Rails/TimeZoneAssignment
168169
Time.zone = rails_tz_actual
170+
# rubocop:enable Rails/TimeZoneAssignment
169171
end
170172

171173
it 'works regardless of the ENV time zone' do

0 commit comments

Comments
 (0)