Skip to content

Commit f0ff5bf

Browse files
committed
More RuboCop fixes
1 parent 497289a commit f0ff5bf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/objectspace/weakmap/element_reference_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
describe "ObjectSpace::WeakMap#[]" do
44
it "is faithful to the map's content" do
55
map = ObjectSpace::WeakMap.new
6-
key1, key2 = %w[a b].map &:upcase
6+
key1, key2 = %w[a b].map(&:upcase)
77
ref1, ref2 = %w[x y]
88
map[key1] = ref1
99
map[key1].should == ref1
@@ -16,7 +16,7 @@
1616

1717
it "matches using identity semantics" do
1818
map = ObjectSpace::WeakMap.new
19-
key1, key2 = %w[a a].map &:upcase
19+
key1, key2 = %w[a a].map(&:upcase)
2020
ref = "x"
2121
map[key1] = ref
2222
map[key2].should == nil

core/objectspace/weakmap/element_set_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def should_accept(map, key, value)
99

1010
it "is correct" do
1111
map = ObjectSpace::WeakMap.new
12-
key1, key2 = %w[a b].map &:upcase
12+
key1, key2 = %w[a b].map(&:upcase)
1313
ref1, ref2 = %w[x y]
1414
should_accept(map, key1, ref1)
1515
should_accept(map, key1, ref1)

core/objectspace/weakmap/shared/include.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
it "matches using identity semantics" do
1616
map = ObjectSpace::WeakMap.new
17-
key1, key2 = %w[a a].map &:upcase
17+
key1, key2 = %w[a a].map(&:upcase)
1818
ref = "x"
1919
map[key1] = ref
2020
map.send(@method, key2).should == false

0 commit comments

Comments
 (0)