module ThoughtBot::Shoulda::ActiveRecord::Macros

def should_have_instance_methods(*methods)


should_have_instance_methods :email, :name, :name=

Ensure that the given instance methods are defined on the model.
def should_have_instance_methods(*methods)
  get_options!(methods)
  klass = model_class
  methods.each do |method|
    should "respond to instance method ##{method}" do
      assert_respond_to klass.new, method, "#{klass.name} does not have instance method #{method}"
    end
  end
end