Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ydakuka opened this issue Jul 8, 2023 · 1 comment
Open

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

ydakuka opened this issue Jul 8, 2023 · 1 comment

Comments

@ydakuka
Copy link
Contributor

ydakuka commented Jul 8, 2023

There is no information which style is preferred.

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

or

let(:user) do
  build(:user, profile: profile).tap do |user|
    user.save validate: false
  end
end
@ydakuka ydakuka changed the title Parentheses around multi-line let and let! Parentheses around multi-line let and let! name Jul 8, 2023
@ydakuka ydakuka changed the title Parentheses around multi-line let and let! name Parentheses around multi-line let or let! name Jul 8, 2023
@ydakuka ydakuka changed the title Parentheses around multi-line let or let! name Parentheses around multi-line let or let! block name Jul 8, 2023
@pirj
Copy link
Member

pirj commented Oct 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants