spec/cards_spec.rb in pin_up-1.0.0 vs spec/cards_spec.rb in pin_up-1.1.0

- old
+ new

@@ -5,8 +5,8 @@ Pin::Base.new(ENV['PIN_SECRET'], :test) end it 'should create a card and respond with the card detail from pin' do options = { number: '5520000000000000', expiry_month: '12', expiry_year: '2018', cvc: '123', name: 'Roland Robot', address_line1: '123 Fake Road', address_line2: '', address_city: 'Melbourne', address_postcode: '1223', address_state: 'Vic', address_country: 'AU' } - Pin::Card.create(options)['token'].should match(/^[a-z]{4}[_]/) + expect(Pin::Card.create(options)['token']).to match(/^[a-z]{4}[_]/) end end