Skip to content

Commit a54c6ca

Browse files
committed
Fix rubocop warnings
1 parent 810a2f2 commit a54c6ca

11 files changed

Lines changed: 12 additions & 12 deletions

File tree

core/data/deconstruct_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
DataSpecs::Measure.new(42, "km").deconstruct.should == [42, "km"]
88
end
99
end
10-
end
10+
end

core/data/fixtures/classes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def self.name
77
"A"
88
end
99
end
10-
10+
1111
class DataSubclass < Data; end
1212
end
1313
end

core/data/inspect_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
describe "Data#inspect" do
66
it_behaves_like :data_inspect, :inspect
77
end
8-
end
8+
end

core/data/shared/inspect.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ def self.name
5151
a.send(@method).should == "#<data DataSpecs::Measure amount=42, unit=#<data DataSpecs::Measure:...>>"
5252
end
5353
end
54-
end
54+
end

core/objectspace/weakkeymap/clear_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
m.clear.should.equal?(m)
2525
end
2626
end
27-
end
27+
end

core/time/now_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

library/stringscanner/captures_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
@s.captures.should == ["Fri", "Dec", nil]
3434
end
3535
end
36-
end
36+
end

library/stringscanner/named_captures_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
@s.named_captures.should == {"wday" => "Fri", "month" => "Dec", "day" => nil}
3030
end
3131
end
32-
end
32+
end

library/stringscanner/peek_byte_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
s.pos.should == 0
3333
end
3434
end
35-
end
35+
end

library/stringscanner/scan_integer_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,4 @@
160160
end
161161
end
162162
end
163-
end
163+
end

0 commit comments

Comments
 (0)