Sha256: 7d79d97dddd27f62e08a9653b7400d99f334a247d2a3bc762d566fcbd6b95a72

Contents?: true

Size: 629 Bytes

Versions: 11

Compression:

Stored size: 629 Bytes

Contents

require 'spec_helper'
describe Seko::Company do

  before do
    Seko.configure(configuration)
  end

  describe '.format' do
    it 'formats a simple company hash into a fully formed JSON ready hash' do
      expected_result = fixture(:company_submit)
      expect(Seko::Company.format(company_submit_hash)).to eq(expected_result)
    end
  end

  describe '.address' do
    it 'formats a simple address hash into a fully formed JSON ready hash' do
      expected_result = fixture(:company_submit)["Request"]["List"]["Address"]
      expect(Seko::Company.address(company_address_hash)).to eq(expected_result)
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
seko-0.0.11 spec/lib/company_spec.rb
seko-0.0.10 spec/lib/company_spec.rb
seko-0.0.9 spec/lib/company_spec.rb
seko-0.0.8 spec/lib/company_spec.rb
seko-0.0.7 spec/lib/company_spec.rb
seko-0.0.6 spec/lib/company_spec.rb
seko-0.0.5 spec/lib/company_spec.rb
seko-0.0.4 spec/lib/company_spec.rb
seko-0.0.3 spec/lib/company_spec.rb
seko-0.0.2 spec/lib/company_spec.rb
seko-0.0.1 spec/lib/company_spec.rb