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
dchelimsky-rspec-1.1.10 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.11.1 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.11.2 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.11.3 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.11.4 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.11.5 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.11.6 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.11.7 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.11 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.12 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.1 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.13 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.2 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.3 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.4 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.5 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.6 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.7 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.8 lib/spec/mocks/space.rb
dchelimsky-rspec-1.1.99.9 lib/spec/mocks/space.rb