Skip to content

Commit

Permalink
destroy all settings after test run
Browse files Browse the repository at this point in the history
  • Loading branch information
meltheadorable committed Jun 5, 2024
1 parent 5197075 commit 6c9b8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
Rails::Debug.log("<----- #{example.description} (#{example.location}) ----->")
@_setting = create(:setting, mission: nil)
example.run
@_setting.destroy!
Setting.destroy_all
Rails::Debug.log("<----- #{example.description} ----->")
Rails::Debug.log("")
end
Expand Down

0 comments on commit 6c9b8c1

Please sign in to comment.