Sha256: 987dfe0c5c665d392b77bd811075eaa662f35dc836a9e0c0ee23aa3069275ea3

Contents?: true

Size: 449 Bytes

Versions: 8

Compression:

Stored size: 449 Bytes

Contents

require 'spec_helper'

describe "Amex" do

  # Called before each example.
  before(:each) do
    @options = Csv2qif::CLI.load_file "amex"
  end

  # Called after each example.
  after(:each) do
    # Do nothing
  end

  [["j", "k", nil, "j\nk"],
   ["#", "k", nil, "#\nk"],
   [nil, "k", nil, "k"],
   ["j", nil, nil, "j"]
  ].each do |j, k, l, a|
    it "should properly map address" do
      eval(@options[:address]).should == a
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
csv2qif-1.2013.5 spec/amex_spec.rb
csv2qif-1.0.4 spec/amex_spec.rb
csv2qif-1.0.3 spec/amex_spec.rb
csv2qif-1.0.2 spec/amex_spec.rb
csv2qif-1.0.1 spec/amex_spec.rb
csv2qif-1.0 spec/amex_spec.rb
csv2qif-0.0.4 spec/amex_spec.rb
csv2qif-0.0.2 spec/amex_spec.rb