rubocop / rspec-style-guide

Best practices for writing your specs!
http://rspec.rubystyle.guide
958 stars 118 forks source link

Parentheses around multi-line `let` or `let!` block name #131

Open ydakuka opened 1 year ago

ydakuka commented 1 year ago

There is no information which style is preferred.

1)

let :user do
  build(:user, profile: profile).tap do |user|
    user.save validate: false
  end
end

or

2)

let(:user) do
  build(:user, profile: profile).tap do |user|
    user.save validate: false
  end
end
pirj commented 1 year ago

Would you please harvest the real-world-rspec repo to see if one style prevails?