diff --git a/spec/ameba/rule/performance/any_after_filter_spec.cr b/spec/ameba/rule/performance/any_after_filter_spec.cr index f95f395a..a7758533 100644 --- a/spec/ameba/rule/performance/any_after_filter_spec.cr +++ b/spec/ameba/rule/performance/any_after_filter_spec.cr @@ -49,6 +49,7 @@ module Ameba::Rule::Performance it "allows to configure object_call_names" do rule = Rule::Performance::AnyAfterFilter.new rule.filter_names = %w(select) + expect_no_issues rule, <<-CRYSTAL [1, 2, 3].reject { |e| e > 2 }.any? CRYSTAL diff --git a/spec/ameba/rule/performance/chained_call_with_no_bang_spec.cr b/spec/ameba/rule/performance/chained_call_with_no_bang_spec.cr index ad3cda81..73100d39 100644 --- a/spec/ameba/rule/performance/chained_call_with_no_bang_spec.cr +++ b/spec/ameba/rule/performance/chained_call_with_no_bang_spec.cr @@ -47,6 +47,7 @@ module Ameba::Rule::Performance it "allows to configure `call_names`" do rule = ChainedCallWithNoBang.new rule.call_names = %w(uniq) + expect_no_issues rule, <<-CRYSTAL [1, 2, 3].select { |e| e > 2 }.reverse CRYSTAL