I know you can easily test a belongs to relationship using Shoulda:
describe Dog dog
it { should belong_to(:owner) }
end
Is it possible to test a more complicated belongs_to relationship using Shoulda? Something like this:
class Dog < ActiveRecord::Base
belongs_to :owner, :class_name => "Person", :foreign_key => "person_id"
end