File: factory_all_stub.rb

package info (click to toggle)
ruby-test-prof 0.12.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 508 kB
  • sloc: ruby: 4,075; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 351 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require "test_prof/factory_all_stub"

TestProf::FactoryAllStub.init

RSpec.shared_context "factory:stub" do
  prepend_before(:all) { TestProf::FactoryAllStub.enable! }
  append_after(:all) { TestProf::FactoryAllStub.disable! }
end

RSpec.configure do |config|
  config.include_context "factory:stub", factory: :stub
end