Skip to content

Commit fdd186c

Browse files
SHinGo-Kobapirj
authored andcommitted
fixed Style/NumericLiterals
1 parent 88f9876 commit fdd186c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)