(no title)
Lukas_Skywalker | 3 months ago
bill = FactoryBot.create(:bill, products: [])
expect(bill.currency).to eq("USD")
It doesn't cover all possibilities of all currencies, but it doesn't need to. It covers the one case it needs to test.Lukas_Skywalker | 3 months ago
bill = FactoryBot.create(:bill, products: [])
expect(bill.currency).to eq("USD")
It doesn't cover all possibilities of all currencies, but it doesn't need to. It covers the one case it needs to test.
No comments yet.