Module Spec::Adapters::MockFramework

  1. lib/spec/adapters/mock_frameworks/flexmock.rb
  2. lib/spec/adapters/mock_frameworks/mocha.rb
  3. lib/spec/adapters/mock_frameworks/rr.rb
  4. lib/spec/adapters/mock_frameworks/rspec.rb
  5. show all

Included modules

  1. FlexMock::MockContainer
  2. Mocha::Standalone
  3. RR::Extensions::InstanceMethods
  4. Spec::Mocks::ExampleMethods

Public instance methods

setup_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/flexmock.rb, line 12
      def setup_mocks_for_rspec
        # No setup required
      end
setup_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/rspec.rb, line 8
      def setup_mocks_for_rspec
        $rspec_mocks ||= Spec::Mocks::Space.new
      end
setup_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/mocha.rb, line 8
      def setup_mocks_for_rspec
        mocha_setup
      end
setup_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/rr.rb, line 10
      def setup_mocks_for_rspec
        RR::Space.instance.reset
      end
teardown_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/rspec.rb, line 14
      def teardown_mocks_for_rspec
        $rspec_mocks.reset_all
      end
teardown_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/mocha.rb, line 14
      def teardown_mocks_for_rspec
        mocha_teardown
      end
teardown_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/flexmock.rb, line 18
      def teardown_mocks_for_rspec
        flexmock_close
      end
teardown_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/rr.rb, line 16
      def teardown_mocks_for_rspec
        RR::Space.instance.reset
      end
verify_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/rr.rb, line 13
      def verify_mocks_for_rspec
        RR::Space.instance.verify_doubles
      end
verify_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/flexmock.rb, line 15
      def verify_mocks_for_rspec
        flexmock_verify
      end
verify_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/rspec.rb, line 11
      def verify_mocks_for_rspec
        $rspec_mocks.verify_all
      end
verify_mocks_for_rspec ()
[show source]
# File lib/spec/adapters/mock_frameworks/mocha.rb, line 11
      def verify_mocks_for_rspec
        mocha_verify
      end