mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Fix specs on Crystal nightly (soon to be v1.7.0)
This commit is contained in:
parent
a091af14a8
commit
d31e41b8a7
10 changed files with 21 additions and 21 deletions
|
@ -51,7 +51,7 @@ module Ameba::Rule::Style
|
|||
expect_issue subject, <<-CRYSTAL, call: {{ call }}
|
||||
class Foo
|
||||
%{call} foo : Bool = true
|
||||
_{call} # ^ error: Consider using '%{call}?' for 'foo'
|
||||
_{call} # ^^^ error: Consider using '%{call}?' for 'foo'
|
||||
end
|
||||
CRYSTAL
|
||||
end
|
||||
|
@ -60,7 +60,7 @@ module Ameba::Rule::Style
|
|||
expect_issue subject, <<-CRYSTAL, call: {{ call }}
|
||||
class Foo
|
||||
%{call} foo : Bool
|
||||
_{call} # ^ error: Consider using '%{call}?' for 'foo'
|
||||
_{call} # ^^^ error: Consider using '%{call}?' for 'foo'
|
||||
|
||||
def initialize(@foo = true)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue