Sha256: 4321029e26cef10e5fc00ecd70d694233e87f409347ed86d2e33e6b6c40fd87e

Contents?: true

Size: 1.11 KB

Versions: 25

Compression:

Stored size: 1.11 KB

Contents

describe Ppl::Format::PostalAddress::OneLine do

  before(:each) do
    @format  = Ppl::Format::PostalAddress::OneLine.new
    @address = Ppl::Entity::PostalAddress.new
  end

  describe "#process" do

    it "should include the country if available" do
      @address.country = "UK"
      @format.process(@address).should include "UK"
    end

    it "should include the locality if available" do
      @address.locality = "Liverpool"
      @format.process(@address).should include "Liverpool"
    end

    it "should include the street if available" do
      @address.street = "1 Test Road"
      @format.process(@address).should include "1 Test Road"
    end

    it "should include the po box if available" do
      @address.po_box = "123456"
      @format.process(@address).should include "123456"
    end

    it "should include the postal code if available" do
      @address.postal_code = "L1 9AA"
      @format.process(@address).should include "L1 9AA"
    end

    it "should include the region if available" do
      @address.region = "Merseyside"
      @format.process(@address).should include "Merseyside"
    end

  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ppl-1.25.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.24.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.23.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.22.2 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.22.1 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.22.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.21.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.20.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.19.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.18.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.17.2 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.17.1 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.17.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.16.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.15.1 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.15.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.14.1 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.14.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.13.0 spec/ppl/format/postal_address/one_line_spec.rb
ppl-1.12.0 spec/ppl/format/postal_address/one_line_spec.rb