mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Apply suggestions from code review
This commit is contained in:
parent
f39a7a4cd4
commit
1d5f554e88
4 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@ module Ameba
|
|||
|
||||
expect_issue rule, <<-CRYSTAL, number: number
|
||||
number = %{number}
|
||||
# ^{number} error: Large numbers should be written with underscores.
|
||||
# ^{number} error: Large numbers should be written with underscores: #{expected}
|
||||
CRYSTAL
|
||||
|
||||
expect_correction <<-CRYSTAL
|
||||
|
@ -126,7 +126,7 @@ module Ameba
|
|||
issue.rule.should_not be_nil
|
||||
issue.location.to_s.should eq "source.cr:1:1"
|
||||
issue.end_location.to_s.should eq "source.cr:1:7"
|
||||
issue.message.should eq "Large numbers should be written with underscores."
|
||||
issue.message.should match /1_200_000/
|
||||
end
|
||||
|
||||
context "properties" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue