Skip to content

Commit

Permalink
Fix rubocop complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Jun 29, 2024
1 parent bc76e66 commit bda7ef4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/unit/mutant/ast/pattern_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,23 +170,23 @@ def apply
end

context 'example from docs' do
let(:string) { <<~EOS }
let(:string) { <<~EXAMPLE }
block
{ receiver = send
{ selector = log
receiver = send{selector=logger}
}
}
EOS
EXAMPLE

let(:expected_node) do
Mutant::AST::Pattern::Node.new(
type: :block,
descendant: Mutant::AST::Pattern::Node::Descendant.new(
name: :receiver,
pattern: Mutant::AST::Pattern::Node.new(
type: :send,
attribute: Mutant::AST::Pattern::Node::Attribute.new(
type: :send,
attribute: Mutant::AST::Pattern::Node::Attribute.new(
name: :selector,
value: Mutant::AST::Pattern::Node::Attribute::Value::Single.new(value: :log)
),
Expand All @@ -197,7 +197,7 @@ def apply
attribute: Mutant::AST::Pattern::Node::Attribute.new(
name: :selector,
value: Mutant::AST::Pattern::Node::Attribute::Value::Single.new(value: :logger)
),
)
)
)
)
Expand Down

0 comments on commit bda7ef4

Please sign in to comment.