Module: RSpec::Core::MockingAdapters::RSpec

Includes:
Mocks::ExampleMethods
Defined in:
lib/rspec/core/mocking_adapters/rspec.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configurationObject



14
15
16
# File 'lib/rspec/core/mocking_adapters/rspec.rb', line 14

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

.framework_nameObject



10
11
12
# File 'lib/rspec/core/mocking_adapters/rspec.rb', line 10

def self.framework_name
  :rspec
end

Instance Method Details

#setup_mocks_for_rspecObject



18
19
20
# File 'lib/rspec/core/mocking_adapters/rspec.rb', line 18

def setup_mocks_for_rspec
  ::RSpec::Mocks.setup
end

#teardown_mocks_for_rspecObject



26
27
28
# File 'lib/rspec/core/mocking_adapters/rspec.rb', line 26

def teardown_mocks_for_rspec
  ::RSpec::Mocks.teardown
end

#verify_mocks_for_rspecObject



22
23
24
# File 'lib/rspec/core/mocking_adapters/rspec.rb', line 22

def verify_mocks_for_rspec
  ::RSpec::Mocks.verify
end