Module: Shoulda::Matchers::ActiveRecord::Uniqueness::TestModels
- Defined in:
- lib/shoulda/matchers/active_record/uniqueness/test_models.rb
Class Method Summary collapse
Class Method Details
.create(model_name) ⇒ Object
8 9 10 |
# File 'lib/shoulda/matchers/active_record/uniqueness/test_models.rb', line 8 def self.create(model_name) TestModelCreator.create(model_name, root_namespace) end |
.remove_all ⇒ Object
12 13 14 |
# File 'lib/shoulda/matchers/active_record/uniqueness/test_models.rb', line 12 def self.remove_all root_namespace.clear end |
.root_namespace ⇒ Object
16 17 18 |
# File 'lib/shoulda/matchers/active_record/uniqueness/test_models.rb', line 16 def self.root_namespace @_root_namespace ||= Namespace.new(self) end |