@@ -146,14 +146,14 @@ def zone.utc_to_local(time)
146146 it "could have any #zone and #utc_offset because they are ignored" do
147147 zone = Object . new
148148 def zone . utc_to_local ( t )
149- Struct . new ( :year , :mon , :mday , :hour , :min , :sec , :isdst , :to_i , :zone , :utc_offset )
149+ Struct . new ( :year , :mon , :mday , :hour , :min , :sec , :isdst , :to_i , :zone , :utc_offset ) # rubocop:disable Lint/StructNewOverride
150150 . new ( t . year , t . mon , t . mday , t . hour , t . min , t . sec , t . isdst , t . to_i , 'America/New_York' , -5 *60 *60 )
151151 end
152152 Time . now ( in : zone ) . utc_offset . should == 0
153153
154154 zone = Object . new
155155 def zone . utc_to_local ( t )
156- Struct . new ( :year , :mon , :mday , :hour , :min , :sec , :isdst , :to_i , :zone , :utc_offset )
156+ Struct . new ( :year , :mon , :mday , :hour , :min , :sec , :isdst , :to_i , :zone , :utc_offset ) # rubocop:disable Lint/StructNewOverride
157157 . new ( t . year , t . mon , t . mday , t . hour , t . min , t . sec , t . isdst , t . to_i , 'Asia/Tokyo' , 9 *60 *60 )
158158 end
159159 Time . now ( in : zone ) . utc_offset . should == 0
0 commit comments