Skip to content

Commit 053ef4a

Browse files
ydahmike-burns
authored andcommitted
bundle exec standardrb --fix
``` 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. ```
1 parent 4f12d8f commit 053ef4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ task spec: ["spec:unit", "spec:acceptance"]
3131

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

3737
YARD::Rake::YardocTask.new do |t|

lib/factory_bot/attribute_assigner.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def object
1313
@evaluator.instance = build_class_instance
1414
build_class_instance.tap do |instance|
1515
attributes_to_set_on_instance.each do |attribute|
16-
instance.public_send("#{attribute}=", get(attribute))
16+
instance.public_send(:"#{attribute}=", get(attribute))
1717
@attribute_names_assigned << attribute
1818
end
1919
end

0 commit comments

Comments
 (0)