File: reload_spec.rb

package info (click to toggle)
ruby-factory-bot 6.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,372 kB
  • sloc: ruby: 7,827; makefile: 6
file content (10 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
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