mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
ensure both strategy options syntaxes work.
This commit is contained in:
parent
85cd6d097f
commit
9046980bd6
1 changed files with 6 additions and 1 deletions
|
@ -144,7 +144,12 @@ module DatabaseCleaner
|
|||
expect(cleaner.strategy).to be_a(strategy_class)
|
||||
end
|
||||
|
||||
it "should proxy params with symbolised strategies" do
|
||||
it "should proxy params with symbolised strategies in an array" do
|
||||
expect(strategy_class).to receive(:new).with(param: "one")
|
||||
cleaner.strategy = [:truncation, param: "one"]
|
||||
end
|
||||
|
||||
it "should proxy params with symbolised strategies in a separate hash" do
|
||||
expect(strategy_class).to receive(:new).with(param: "one")
|
||||
cleaner.strategy = :truncation, { param: "one" }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue