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
rackjour-0.1.8 vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb
middleman-0.10.14 vendor/gems/gems/rspec-1.2.9/lib/spec/mocks/space.rb
ageweke-rspec-1.2.9 lib/spec/mocks/space.rb
rspec-1.2.9 lib/spec/mocks/space.rb
rspec-1.2.7 lib/spec/mocks/space.rb
rspec-1.2.8 lib/spec/mocks/space.rb
deckshuffler-0.0.2 vendor/plugins/rspec/lib/spec/mocks/space.rb
mack-0.8.2 lib/gems/rspec-1.1.11/lib/spec/mocks/space.rb
mack-0.8.3.1 lib/gems/rspec-1.1.12/lib/spec/mocks/space.rb
mack-0.8.3 lib/gems/rspec-1.1.12/lib/spec/mocks/space.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/space.rb
picolena-0.1.0 rails_plugins/rspec/lib/spec/mocks/space.rb
picolena-0.1.1 rails_plugins/rspec/lib/spec/mocks/space.rb
picolena-0.1.3 rails_plugins/rspec/lib/spec/mocks/space.rb
picolena-0.1.4 rails_plugins/rspec/lib/spec/mocks/space.rb
picolena-0.1.2 rails_plugins/rspec/lib/spec/mocks/space.rb
picolena-0.1.5 rails_plugins/rspec/lib/spec/mocks/space.rb
pictrails-0.5.0 vendor/plugins/rspec/lib/spec/mocks/space.rb
radiant-0.6.5.1 vendor/plugins/rspec/lib/spec/mocks/space.rb
radiant-0.6.5 vendor/plugins/rspec/lib/spec/mocks/space.rb