customer = Customer.create!(name: 'John') seller = Seller.create!(name: 'JewelStore') product = Product.create!(name: 'Ruby', seller: seller, price_unit: 2015) credit_card = PaymentMethod.create!(name: 'Visa', type: 'credit card') order = Order.create!( customer: customer, seller: seller, product: product, status: :inactive ) # Exercise payment = order.pay!(credit_card) # Verify expect(payment).to be(false) # Teardown order.destroy! product.destroy! credit_card.destroy! seller.destroy! customer.destroy! end