Skip to content

Commit

Permalink
Make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
cflipse committed Nov 14, 2024
1 parent 6746b6d commit 8b82feb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ gem "faker", "~> 3.0"
gem "rspec", "~> 3.0"

git "https://github.com/rom-rb/rom.git", branch: "release-5.3" do
gem "rom-core"
gem "rom"
gem "rom-changeset"
gem "rom-core"
gem "rom-repository"
gem "rom"
end

group :test do
Expand Down
2 changes: 1 addition & 1 deletion lib/rom/factory/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def define(spec, opts = EMPTY_HASH, &block)
def [](name, *traits, **attrs)
registry[name].struct_namespace(struct_namespace).persistable.create(*traits, **attrs)
end
alias create []
alias_method :create, :[]

# Return in-memory struct builder
#
Expand Down
1 change: 0 additions & 1 deletion spec/integration/rom/factory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ def build(factory, *traits, **attrs)
end
end


describe "factories builder DSL" do
it "infers relation from the name" do
factories.define(:user) do |f|
Expand Down

0 comments on commit 8b82feb

Please sign in to comment.