rspec pyetst code example
Example: rspec testing have many
describe Link do
it { should belong_to(:post) }
end
describe Post do
it { should have_many(:links) }
end
describe Link do
it { should belong_to(:post) }
end
describe Post do
it { should have_many(:links) }
end