# File lib/shoulda/active_record/macros.rb, line 365 365: def should_have_instance_methods(*methods) 366: ::ActiveSupport::Deprecation.warn 367: get_options!(methods) 368: klass = described_type 369: methods.each do |method| 370: should "respond to instance method ##{method}" do 371: assert_respond_to klass.new, method, "#{klass.name} does not have instance method #{method}" 372: end 373: end 374: end