Sha256: 80a681b3df9ad43380ba94943dfce8e529306499f33c49c95dca2fdebd01eb66
Contents?: true
Size: 753 Bytes
Versions: 5
Compression:
Stored size: 753 Bytes
Contents
# frozen_string_literal: true module Jiminy module Recording require "jiminy/recording/prosopite_ext/send_notifications_with_tmp_file" module RSpec require "prosopite" require "jiminy/recording/test_controller_concern" ::Prosopite.singleton_class.prepend ProsopiteExt::SendNotificationsWithTmpFile def wrap_rspec_example(example) Prosopite.tmp_file = true ActionController::Base.include(Jiminy::Recording::TestControllerConcern) example.run Prosopite.tmp_file = false end Jiminy.extend(self) end end end RSpec.configure do |config| config.before(:suite) { Jiminy.reset_results_file! } config.around do |example| Jiminy.wrap_rspec_example(example) end end
Version data entries
5 entries across 5 versions & 1 rubygems