Skip to content

Commit 5741929

Browse files
committed
Style/NumericLiterals
1 parent 69f67ec commit 5741929

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

benchmarks/before_block_capture_block_vs_yield.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def capture_block_and_call_n_times(n, &block)
1616
before_n_times(n) { block.call }
1717
end
1818

19-
[10, 25, 50, 100, 1000, 10000].each do |count|
19+
[10, 25, 50, 100, 1000, 10_000].each do |count|
2020
puts "\n\nInvoking the block #{count} times\n"
2121

2222
Benchmark.ips do |x|

spec/rspec/rails/matchers/action_cable/have_stream_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,15 @@ def subscribed
159159
subscribe user: 42
160160

161161
expect {
162-
expect(subscription).to have_stream_for(StreamModel.new(31337))
162+
expect(subscription).to have_stream_for(StreamModel.new(31_337))
163163
}.to raise_error(/expected to have stream "broadcast:StreamModel#31337" started, but have \[\"broadcast:StreamModel#42\"\]/)
164164
end
165165

166166
context "with negated form" do
167167
it "passes" do
168168
subscribe user: 42
169169

170-
expect(subscription).not_to have_stream_for(StreamModel.new(31337))
170+
expect(subscription).not_to have_stream_for(StreamModel.new(31_337))
171171
end
172172

173173
it "fails with message" do

0 commit comments

Comments
 (0)