Sha256: 87e3b270b58c256fadd11f317b0b2e3bd28671ee6e2005fdf4ed0414c7c228e7

Contents?: true

Size: 497 Bytes

Versions: 19

Compression:

Stored size: 497 Bytes

Contents

require 'thread'

module Shoulda
  module Matchers
    module ActiveRecord
      # @private
      module Uniqueness
        # @private
        module TestModels
          def self.create(model_name)
            TestModelCreator.create(model_name, root_namespace)
          end

          def self.remove_all
            root_namespace.clear
          end

          def self.root_namespace
            @_root_namespace ||= Namespace.new(self)
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
shoulda-matchers-4.4.1 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-4.4.0 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-4.3.0 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-4.2.0 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-4.1.2 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-4.1.1 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-4.1.0 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-4.0.1 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-3.1.3 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-4.0.0.rc1 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-3.1.2 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/shoulda-matchers-2.8.0/lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-3.1.1 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-3.1.0 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-3.0.1 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-3.0.0 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-3.0.0.rc1 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-2.8.0 lib/shoulda/matchers/active_record/uniqueness/test_models.rb
shoulda-matchers-2.8.0.rc2 lib/shoulda/matchers/active_record/uniqueness/test_models.rb