module FriendlyId::Test::Generic

Tests for any model that implements FriendlyId. Any test that tests model features should include this module.

Public Instance Methods

create_method() click to toggle source
# File lib/friendly_id/test.rb, line 40
def create_method
  raise NotImplementedError
end
find_method() click to toggle source
# File lib/friendly_id/test.rb, line 36
def find_method
  raise NotImplementedError
end
instance() click to toggle source
# File lib/friendly_id/test.rb, line 24
def instance
  raise NotImplementedError
end
klass() click to toggle source
# File lib/friendly_id/test.rb, line 28
def klass
  raise NotImplementedError
end
other_class() click to toggle source
# File lib/friendly_id/test.rb, line 32
def other_class
  raise NotImplementedError
end
setup() click to toggle source
# File lib/friendly_id/test.rb, line 15
def setup
  klass.send delete_all_method
end
teardown() click to toggle source
# File lib/friendly_id/test.rb, line 19
def teardown
  klass.send delete_all_method
  # other_class.delete_all
end
validation_exceptions() click to toggle source
# File lib/friendly_id/test.rb, line 44
def validation_exceptions
  return RuntimeError
end