File: rspec.rb

package info (click to toggle)
ruby-rspec 3.12.0c0e1m1s0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,752 kB
  • sloc: ruby: 69,818; sh: 1,861; makefile: 99
file content (32 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'rspec/mocks'

module RSpec
  module Core
    module MockingAdapters
      # @private
      module RSpec
        include ::RSpec::Mocks::ExampleMethods

        def self.framework_name
          :rspec
        end

        def self.configuration
          ::RSpec::Mocks.configuration
        end

        def setup_mocks_for_rspec
          ::RSpec::Mocks.setup
        end

        def verify_mocks_for_rspec
          ::RSpec::Mocks.verify
        end

        def teardown_mocks_for_rspec
          ::RSpec::Mocks.teardown
        end
      end
    end
  end
end