Skip to content

Fix crash on unexpected method-signature in rspec describe #1239

Open
@mbj

Description

@mbj
describe '#@-' do
  it 'turns positive value into a negative' do
    expect(-value({ amount: 10 })).to have_attributes(amount: -10)
  end
end

This crashes the method name parser where it should not.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions