Skip to content

Commit

Permalink
bundle exec standardrb --fix
Browse files Browse the repository at this point in the history
```
standard: Use Ruby Standard Style (https://github.com/standardrb/standard)
  Rakefile:34:34: Style/RedundantParentheses: Don't use parentheses around a logical expression.
  lib/factory_bot/attribute_assigner.rb:16:32: Performance/StringIdentifierArgument: Use `:"#{attribute}="` instead of `"#{attribute}="`.
standard: Run `standardrb --fix` to fix up to 2 problems.
```
  • Loading branch information
ydah authored and mike-burns committed Feb 19, 2024
1 parent 4f12d8f commit 053ef4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ task spec: ["spec:unit", "spec:acceptance"]

Cucumber::Rake::Task.new(:features) do |t|
t.fork = true
t.cucumber_opts = ["--format", (ENV["CUCUMBER_FORMAT"] || "progress")]
t.cucumber_opts = ["--format", ENV["CUCUMBER_FORMAT"] || "progress"]
end

YARD::Rake::YardocTask.new do |t|
Expand Down
2 changes: 1 addition & 1 deletion lib/factory_bot/attribute_assigner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def object
@evaluator.instance = build_class_instance
build_class_instance.tap do |instance|
attributes_to_set_on_instance.each do |attribute|
instance.public_send("#{attribute}=", get(attribute))
instance.public_send(:"#{attribute}=", get(attribute))
@attribute_names_assigned << attribute
end
end
Expand Down

0 comments on commit 053ef4a

Please sign in to comment.