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

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/mocha.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.framework_nameObject



32
33
34
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/mocha.rb', line 32

def self.framework_name
  :mocha
end

Instance Method Details

#setup_mocks_for_rspecObject



43
44
45
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/mocha.rb', line 43

def setup_mocks_for_rspec
  mocha_setup
end

#teardown_mocks_for_rspecObject



51
52
53
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/mocha.rb', line 51

def teardown_mocks_for_rspec
  mocha_teardown
end

#verify_mocks_for_rspecObject



47
48
49
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/mocha.rb', line 47

def verify_mocks_for_rspec
  mocha_verify
end