test/spec/fees_spec.rb in openpay-1.0.1 vs test/spec/fees_spec.rb in openpay-1.0.2

- old
+ new

@@ -1,6 +1,6 @@ -require './test/spec_helper' +require_relative '../spec_helper' describe Fees do before(:all) do @@ -99,10 +99,10 @@ #create customer fee fee_hash = FactoryGirl.build(:fee, customer_id: customer['id']) @fees.create(fee_hash) #performs check - expect(@fees.all.first['customer_id']).to match customer['id'] + expect(@fees.all.first['amount']).to be_a Float #cleanup @cards.delete(card['id'], customer['id']) @customers.delete(customer['id'])