Class Spec::Mocks::Space

  1. lib/spec/mocks/space.rb
Parent: Object

Methods

public instance

  1. add
  2. reset_all
  3. verify_all

Public instance methods

add (obj)
[show source]
# File lib/spec/mocks/space.rb, line 4
      def add(obj)
        mocks << obj unless mocks.detect {|m| m.equal? obj}
      end
reset_all ()
[show source]
# File lib/spec/mocks/space.rb, line 14
      def reset_all
        mocks.each do |mock|
          mock.rspec_reset
        end
        mocks.clear
      end
verify_all ()
[show source]
# File lib/spec/mocks/space.rb, line 8
      def verify_all
        mocks.each do |mock|
          mock.rspec_verify
        end
      end