From 503d515930db6acee2082f359c2f8d86677bce82 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Fri, 4 Jan 2019 22:50:05 +0000 Subject: [PATCH] Fix credit card spec that was depending on current year After this commit https://github.com/openfoodfoundation/spree/commit/5d93d1dedb0c727c9a78770d35a4363a16fa1691, this static fix was meant to fail https://github.com/openfoodfoundation/openfoodnetwork/commit/3f33e28839cc60dd28175becad8ed590bc51bb6e --- spec/serializers/credit_card_serializer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/serializers/credit_card_serializer_spec.rb b/spec/serializers/credit_card_serializer_spec.rb index a3e7b9ef22..31786903c8 100644 --- a/spec/serializers/credit_card_serializer_spec.rb +++ b/spec/serializers/credit_card_serializer_spec.rb @@ -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