Sha256: 46bee625fabd397f089714ba7689563105e44a2a9854a350b5bdcf0c5e511a59

Contents?: true

Size: 483 Bytes

Versions: 8

Compression:

Stored size: 483 Bytes

Contents

require 'spec_helper'

describe USPSFlags::Helpers do
  describe "valid_flags" do
    it "should return an Array" do
      expect(USPSFlags::Helpers.valid_flags).to be_an(Array)
    end

    it "should return all officer flags but nothing else when given type :officer" do
      expect(USPSFlags::Helpers.valid_flags(:officer)).to eql(%w[PLTC PC PORTCAP FLEETCAP LT FLT 1LT LTC CDR PDLTC PDC DLT DAIDE DFLT D1LT DLTC DC PSTFC PRC PVC PCC NAIDE NFLT STFC RC VC CC])
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
usps_flags-0.1.24 spec/usps_flags/helpers_spec.rb
usps_flags-0.1.23 spec/usps_flags/helpers_spec.rb
usps_flags-0.1.22 spec/usps_flags/helpers_spec.rb
usps_flags-0.1.21 spec/usps_flags/helpers_spec.rb
usps_flags-0.1.20 spec/usps_flags/helpers_spec.rb
usps_flags-0.1.19 spec/usps_flags/helpers_spec.rb
usps_flags-0.1.18 spec/usps_flags/helpers_spec.rb
usps_flags-0.1.17 spec/usps_flags/helpers_spec.rb