module ThoughtBot::Shoulda::ActiveRecord::Macros
def should_have_class_methods(*methods)
should_have_class_methods :find, :destroy
Ensure that the given class methods are defined on the model.
def should_have_class_methods(*methods) get_options!(methods) klass = model_class methods.each do |method| should "respond to class method ##{method}" do assert_respond_to klass, method, "#{klass.name} does not have class method #{method}" end end end