diff --git a/gemfiles/ruby3.4/Gemfile b/gemfiles/ruby3.4/Gemfile index aeaa2eb..679dd58 100644 --- a/gemfiles/ruby3.4/Gemfile +++ b/gemfiles/ruby3.4/Gemfile @@ -2,7 +2,7 @@ source 'http://rubygems.org' -ruby '3.4.8' +ruby '~> 3.4' # Specify your gem's dependencies in FatZebra.gemspec gemspec path: '../../' diff --git a/lib/fat_zebra/card.rb b/lib/fat_zebra/card.rb index a045d5b..79aca3d 100644 --- a/lib/fat_zebra/card.rb +++ b/lib/fat_zebra/card.rb @@ -19,8 +19,5 @@ class Card < APIResource validates :card_expiry, required: { unless: %i[wallet] }, on: :create validates :wallet, required: { unless: %i[card_number] }, on: :create - - validates :card_expiry, required: true, on: :update - end end diff --git a/spec/lib/fat_zebra/card_spec.rb b/spec/lib/fat_zebra/card_spec.rb index bb0408c..60cd68a 100644 --- a/spec/lib/fat_zebra/card_spec.rb +++ b/spec/lib/fat_zebra/card_spec.rb @@ -30,12 +30,6 @@ it { is_expected.to be_accepted } it { expect(credit_card.token).to eq(create.token) } it { expect(credit_card.card_expiry).to_not eq(create.card_expiry) } - - context 'validations' do - let(:valid_credit_card_update_payload) {{}} - - it { expect{ credit_card }.to raise_error(FatZebra::RequestValidationError) } - end end describe '.find', :vcr do