Skip to content

Option to not switch Ruby blocks to do/end when chained #124

Description

@att14

Currently when spliting something like this:

expect { ... }.to raise_error StandardError

it produces:

expect do
   ...
end.to raise_error SomeError

Chaining on end is usually considered bad syntax. The expected split would be:

expect {
   ...
}.to raise_error SomeError

In my opinion this should be the default, but if you wanted to keep it how it is for backwards compatibility an options would be nice to toggle this behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions