Module: FriendlyId::Test::Generic
- Defined in:
- lib/friendly_id/test.rb
Overview
Tests for any model that implements FriendlyId. Any test that tests model features should include this module.
Instance Method Summary collapse
- #create_method ⇒ Object
- #find_method ⇒ Object
- #instance ⇒ Object
- #klass ⇒ Object
- #other_class ⇒ Object
- #setup ⇒ Object
- #teardown ⇒ Object
- #update_method ⇒ Object
- #validation_exceptions ⇒ Object
Instance Method Details
#create_method ⇒ Object
39 40 41 |
# File 'lib/friendly_id/test.rb', line 39 def create_method raise NotImplementedError end |
#find_method ⇒ Object
35 36 37 |
# File 'lib/friendly_id/test.rb', line 35 def find_method raise NotImplementedError end |
#instance ⇒ Object
23 24 25 |
# File 'lib/friendly_id/test.rb', line 23 def instance raise NotImplementedError end |
#klass ⇒ Object
27 28 29 |
# File 'lib/friendly_id/test.rb', line 27 def klass raise NotImplementedError end |
#other_class ⇒ Object
31 32 33 |
# File 'lib/friendly_id/test.rb', line 31 def other_class raise NotImplementedError end |
#setup ⇒ Object
15 16 17 |
# File 'lib/friendly_id/test.rb', line 15 def setup klass.send delete_all_method end |
#teardown ⇒ Object
19 20 21 |
# File 'lib/friendly_id/test.rb', line 19 def teardown klass.send delete_all_method end |
#update_method ⇒ Object
43 44 45 |
# File 'lib/friendly_id/test.rb', line 43 def update_method raise NotImplementedError end |
#validation_exceptions ⇒ Object
47 48 49 |
# File 'lib/friendly_id/test.rb', line 47 def validation_exceptions return RuntimeError end |