mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Specs cleanup
This commit is contained in:
parent
e6ebca7a5b
commit
8112dddc8f
24 changed files with 267 additions and 251 deletions
|
@ -47,7 +47,7 @@ module Ameba::Rule::Performance
|
|||
|
||||
context "properties" do
|
||||
it "allows to configure object_call_names" do
|
||||
rule = Rule::Performance::AnyAfterFilter.new
|
||||
rule = AnyAfterFilter.new
|
||||
rule.filter_names = %w(select)
|
||||
|
||||
expect_no_issues rule, <<-CRYSTAL
|
||||
|
|
|
@ -63,7 +63,7 @@ module Ameba::Rule::Performance
|
|||
|
||||
context "properties" do
|
||||
it "allows to configure object_call_names" do
|
||||
rule = Rule::Performance::FirstLastAfterFilter.new
|
||||
rule = FirstLastAfterFilter.new
|
||||
rule.filter_names = %w(reject)
|
||||
|
||||
expect_no_issues rule, <<-CRYSTAL
|
||||
|
|
|
@ -45,7 +45,7 @@ module Ameba::Rule::Performance
|
|||
|
||||
context "properties" do
|
||||
it "allows to configure object caller names" do
|
||||
rule = Rule::Performance::SizeAfterFilter.new
|
||||
rule = SizeAfterFilter.new
|
||||
rule.filter_names = %w(select)
|
||||
|
||||
expect_no_issues rule, <<-CRYSTAL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue