mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
test active record :reset_ids deprecation.
This commit is contained in:
parent
08aa5844a2
commit
e0eba7e3dc
1 changed files with 12 additions and 0 deletions
|
|
@ -115,6 +115,18 @@ RSpec.describe DatabaseCleaner::ActiveRecord::Truncation do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe ":reset_ids removal deprecation" do
|
||||
it "displays a deprecation warning if reset_ids is set" do
|
||||
expect(DatabaseCleaner).to receive(:deprecate)
|
||||
described_class.new(reset_ids: true)
|
||||
end
|
||||
|
||||
it "does not display a deprecation warning if not called" do
|
||||
expect(DatabaseCleaner).to_not receive(:deprecate)
|
||||
described_class.new
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue