Fix credit card spec that was depending on current year

After this commit 5d93d1dedb, this static fix was meant to fail 3f33e28839
This commit is contained in:
luisramos0
2019-01-04 22:50:05 +00:00
parent db6d39cedd
commit 503d515930

View File

@@ -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