mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix credit card spec that was depending on current year
After this commit5d93d1dedb, this static fix was meant to fail3f33e28839
This commit is contained in:
@@ -10,6 +10,6 @@ describe Api::CreditCardSerializer do
|
||||
end
|
||||
|
||||
it "formats an identifying string with the card number masked" do
|
||||
expect(serializer.formatted).to eq "Visa x-1111 Exp:12/2019"
|
||||
expect(serializer.formatted).to eq "Visa x-1111 Exp:#{card.month}/#{card.year}"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user