Sha256: 69b086102971368ae37e532029f6b265ed88d5304d2a0807379d2d6178d49972

Contents?: true

Size: 845 Bytes

Versions: 14

Compression:

Stored size: 845 Bytes

Contents

require 'spec_helper'

describe USPSFlags::Config do
  describe "flags_dir" do
    it "should return the current flags directory" do
      default_flags_dir = File.dirname(__dir__).gsub("/spec", "/lib") + "/output"
      expect(USPSFlags::Config.flags_dir).to eql(default_flags_dir)
    end

    it "should return the new flags directory when given a new path" do
      new_flags_dir = "#{File.dirname(__dir__)}/flags"
      expect(USPSFlags::Config.flags_dir(new_flags_dir)).to eql(new_flags_dir)
    end
  end

  describe "trident" do
    it "should return a Hash from trident" do
      expect(USPSFlags::Config.trident).to be_a(Hash)
    end
  end

  describe "use_larger_tridents" do
    it "should return a Boolean from use_larger_tridents" do
      expect([true, false]).to include(USPSFlags::Config.use_larger_tridents)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
usps_flags-0.2.3 spec/usps_flags/config_spec.rb
usps_flags-0.2.2 spec/usps_flags/config_spec.rb
usps_flags-0.2.1 spec/usps_flags/config_spec.rb
usps_flags-0.2.0 spec/usps_flags/config_spec.rb
usps_flags-0.1.26 spec/usps_flags/config_spec.rb
usps_flags-0.1.25 spec/usps_flags/config_spec.rb
usps_flags-0.1.24 spec/usps_flags/config_spec.rb
usps_flags-0.1.23 spec/usps_flags/config_spec.rb
usps_flags-0.1.22 spec/usps_flags/config_spec.rb
usps_flags-0.1.21 spec/usps_flags/config_spec.rb
usps_flags-0.1.20 spec/usps_flags/config_spec.rb
usps_flags-0.1.19 spec/usps_flags/config_spec.rb
usps_flags-0.1.18 spec/usps_flags/config_spec.rb
usps_flags-0.1.17 spec/usps_flags/config_spec.rb