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

DEV: Allow fab! without block #24314

Merged
merged 1 commit into from
Nov 9, 2023
Merged

DEV: Allow fab! without block #24314

merged 1 commit into from
Nov 9, 2023

Conversation

danielwaterworth
Copy link
Member

No description provided.

@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Nov 9, 2023
@@ -160,18 +160,22 @@ def self.test_setup(x = nil)
end
end

if ENV["PREFABRICATION"] == "0"
Copy link
Contributor

@jjaffeux jjaffeux Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For any future traveler, the change starts here

Copy link
Contributor

@jjaffeux jjaffeux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great idea 👍

@danielwaterworth danielwaterworth merged commit 6e161d3 into main Nov 9, 2023
15 checks passed
@danielwaterworth danielwaterworth deleted the concise-fab branch November 9, 2023 22:48
Drenmi added a commit to discourse/rubocop-discourse that referenced this pull request Feb 20, 2024
…#40)

In discourse/discourse#24314, @danielwaterworth introduced the ability to use #fab! with a shorthand when simply fabricating a vanilla record with the same name as the assigned let. This PR introduces a cop that highlights places where this shorthand can be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
2 participants