Sha256: 549d114a6dd9d803c978b69c784be03069ae125276fd559b7495274022fc25b6

Contents?: true

Size: 448 Bytes

Versions: 126

Compression:

Stored size: 448 Bytes

Contents

module Spec
  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

126 entries across 126 versions & 22 rubygems

Version Path
hubbub-0.0.8 lib/vendor/plugins/rspec/lib/spec/mocks/space.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/lib/spec/mocks/space.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb
media-path-0.1.2 vendor/rspec/lib/spec/mocks/space.rb
simple-templater-0.0.1.3 vendor/rspec/lib/spec/mocks/space.rb
pupu-0.0.2.pre vendor/rspec/lib/spec/mocks/space.rb
media-path-0.1.1.pre vendor/rspec/lib/spec/mocks/space.rb
simple-templater-0.0.1.2 vendor/rspec/lib/spec/mocks/space.rb
media-path-0.1.1 vendor/rspec/lib/spec/mocks/space.rb
simple-templater-0.0.1.1 vendor/rspec/lib/spec/mocks/space.rb
pupu-0.0.2 vendor/rspec/lib/spec/mocks/space.rb
rango-0.0.6 vendor/rspec/lib/spec/mocks/space.rb
rango-0.1.pre vendor/rspec/lib/spec/mocks/space.rb
pupu-0.0.1 vendor/rspec/lib/spec/mocks/space.rb
media-path-0.1 vendor/rspec/lib/spec/mocks/space.rb
simple-templater-0.0.1 vendor/rspec/lib/spec/mocks/space.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/space.rb
middleman-0.10.17 vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb
middleman-0.10.16 vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb
middleman-0.10.15 vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb