Sha256: dab91a057995c3188c44a8d40ab38b0a0e0e9d376d54b5bdc000d874701ff309

Contents?: true

Size: 449 Bytes

Versions: 18

Compression:

Stored size: 449 Bytes

Contents

module Rspec
  module Mocks
    class Space
      def add(obj)
        mocks << obj unless mocks.detect {|m| m.equal? obj}
      end

      def verify_all
        mocks.each do |mock|
          mock.rspec_verify
        end
      end
      
      def reset_all
        mocks.each do |mock|
          mock.rspec_reset
        end
        mocks.clear
      end
      
    private
    
      def mocks
        @mocks ||= []
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rspec-mocks-2.0.0.beta.8 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.beta.7 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.beta.6 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.beta.5 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.beta.4 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.beta.3 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.beta.2 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.beta.1 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a10 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a9 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a8 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a7 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a6 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a5 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a4 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a3 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a2 lib/rspec/mocks/space.rb
rspec-mocks-2.0.0.a1 lib/rspec/mocks/space.rb