diff --git a/spec/ameba/rule/lint/empty_expression_spec.cr b/spec/ameba/rule/lint/empty_expression_spec.cr index 2c7b8988..5b6d92b0 100644 --- a/spec/ameba/rule/lint/empty_expression_spec.cr +++ b/spec/ameba/rule/lint/empty_expression_spec.cr @@ -3,7 +3,7 @@ require "../../../spec_helper" module Ameba subject = Rule::Lint::EmptyExpression.new - def it_detects_empty_expression(code) + private def it_detects_empty_expression(code) it "detects empty expression" do s = Source.new code rule = Rule::Lint::EmptyExpression.new diff --git a/spec/ameba/rule/style/guard_clause_spec.cr b/spec/ameba/rule/style/guard_clause_spec.cr index 6954b736..df372957 100644 --- a/spec/ameba/rule/style/guard_clause_spec.cr +++ b/spec/ameba/rule/style/guard_clause_spec.cr @@ -3,7 +3,7 @@ require "../../../spec_helper" module Ameba subject = Rule::Style::GuardClause.new - def it_reports_body(body, *, line = __LINE__) + private def it_reports_body(body, *, line = __LINE__) rule = Rule::Style::GuardClause.new it "reports an issue if method body is if / unless without else" do @@ -75,7 +75,7 @@ module Ameba end end - def it_reports_control_expression(kw, *, line = __LINE__) + private def it_reports_control_expression(kw, *, line = __LINE__) rule = Rule::Style::GuardClause.new it "reports an issue with #{kw} in the if branch" do