1 2 3 4 5 6
require 'rails_helper' RSpec.describe Payment, type: :model do it { should have_one(:order) } it { should belong_to(:card) } end