Skip to content

Commit

Permalink
Disable FactoryBot/IdSequence, rollback it's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Jan 2, 2024
1 parent 51f26c9 commit 4d36261
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ Style/WordArray:

Style/ClassAndModuleChildren:
EnforcedStyle: compact

FactoryBot/IdSequence:
Enabled: false
2 changes: 2 additions & 0 deletions spec/factories/edge_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

FactoryBot.define do
factory :edge, class: "Grumlin::Edge" do
sequence(:id)

initialize_with { new(**attributes) }

label { "test_edge" }
Expand Down
2 changes: 2 additions & 0 deletions spec/factories/vertex_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

FactoryBot.define do
factory :vertex, class: "Grumlin::Vertex" do
sequence(:id)

initialize_with { new(**attributes) }

label { "test_vertex" }
Expand Down

0 comments on commit 4d36261

Please sign in to comment.