# File lib/shoulda/active_record/macros.rb, line 304 304: def should_have_one(*associations) 305: ::ActiveSupport::Deprecation.warn("use: should have_one") 306: dependent, through = get_options!(associations, :dependent, :through) 307: associations.each do |association| 308: should have_one(association).dependent(dependent).through(through) 309: end 310: end