mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
11 lines
299 B
Ruby
11 lines
299 B
Ruby
|
describe "reload" do
|
||
|
it "does not reset the value of use_parent_strategy" do
|
||
|
use_parent_strategy = :custom_use_parent_strategy_value
|
||
|
FactoryBot.use_parent_strategy = use_parent_strategy
|
||
|
|
||
|
FactoryBot.reload
|
||
|
|
||
|
expect(FactoryBot.use_parent_strategy).to eq use_parent_strategy
|
||
|
end
|
||
|
end
|