Skip to content

Commit d43dd58

Browse files
committed
Fix Rubocop warnings
1 parent 9df05fb commit d43dd58

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

core/proc/parameters_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,6 @@
194194
end
195195

196196
it "regards a destructured parameter in lambda as an required" do
197-
-> ((a)) { }.parameters.should == [[:req]]
197+
-> ((a)) { }.parameters.should == [[:req]] # rubocop:disable Style/StabbyLambdaParentheses
198198
end
199199
end

language/it_parameter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ def o.it
8585
it "does not affect binding local variables" do
8686
-> { it; binding.local_variables }.call("a").should == []
8787
end
88-
88+
8989
it "does not affect binding local variables getting" do
9090
proc {
9191
a = it; binding.local_variable_get(:it)
9292
}.should.raise(NameError, /local variable 'it' is not defined for/)
9393
end
94-
94+
9595
it "does not affect binding local variables setting" do
9696
-> {
9797
a = it

shared/kernel/fixtures/classes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ def self.with_raise
66
end
77
end
88
end
9-
end
9+
end

0 commit comments

Comments
 (0)