1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/spec/acceptance/reload_spec.rb

11 lines
329 B
Ruby
Raw Permalink Normal View History

describe "reload" do
it "does not reset the value of use_parent_strategy" do
custom_strategy = :custom_use_parent_strategy_value
with_temporary_assignment(FactoryBot, :use_parent_strategy, custom_strategy) do
FactoryBot.reload
expect(FactoryBot.use_parent_strategy).to eq custom_strategy
end
end
end