Sha256: c6291d70a949845fe11b20c1a3b267481ebd049e81aae29834fe31914250d0ad

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

require 'spec_helper'

describe PayoneerCsv::Transaction do
  let(:attributes) {
    {
      description: 'Sample transaction',
      amount: '2,123.99',
      created_at: '10/19/2012 11:38:12 PM'
    }
  }

  let(:transaction) { described_class.new(attributes) }
  subject { transaction }

  its(:description) { should == attributes[:description] }
  its(:amount) { should == 2_123.99 }
  its(:created_at) { should == attributes[:created_at] }

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
payoneer_csv-0.1.4 spec/payoneer_csv/transaction_spec.rb
payoneer_csv-0.1.2 spec/payoneer_csv/transaction_spec.rb
payoneer_csv-0.1.1 spec/payoneer_csv/transaction_spec.rb