# File lib/shoulda/active_record/macros.rb, line 305
305:       def should_have_one(*associations)
306:         dependent, through = get_options!(associations, :dependent, :through)
307:         associations.each do |association|
308:           matcher = have_one(association).dependent(dependent).through(through)
309:           should matcher.description do
310:             assert_accepts(matcher, subject)
311:           end
312:         end
313:       end