Sha256: cccaaa7539b164ebb0e9af6fbb15402f13e57d649eaa2f28822f1f3324073c1a

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents

module UnitTests
  module ModelCreators
    class << self
      def register(name, klass)
        registrations[name] = klass
      end

      def retrieve(name)
        registrations[name]
      end

      private

      def registrations
        @_registrations ||= {}
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shoulda-matchers-3.1.3 spec/support/unit/model_creators.rb
shoulda-matchers-4.0.0.rc1 spec/support/unit/model_creators.rb
shoulda-matchers-3.1.2 spec/support/unit/model_creators.rb
shoulda-matchers-3.1.1 spec/support/unit/model_creators.rb
shoulda-matchers-3.1.0 spec/support/unit/model_creators.rb