Sha256: 849e40b87c4430917a0620df11b29b967d1b2b4693bffdaf3487eb5c5ad75fee

Contents?: true

Size: 572 Bytes

Versions: 6

Compression:

Stored size: 572 Bytes

Contents

require "spec_helper"

describe Stairs::Configuration do
  subject { described_class.new }

  describe "attributes" do
    it "allows for configuration of env_adapter" do
      subject.env_adapter = "test"
      expect(subject.env_adapter).to eq "test"
    end

    describe "use_defaults to automatically use default values" do
      it "defaults to false" do
        expect(subject.use_defaults).to eq false
      end

      it "allows for configuration" do
        subject.use_defaults = true
        expect(subject.use_defaults).to eq true
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stairs-0.9.0 spec/lib/configuration_spec.rb
stairs-0.8.0 spec/lib/configuration_spec.rb
stairs-0.7.1 spec/lib/configuration_spec.rb
stairs-0.7.0 spec/lib/configuration_spec.rb
stairs-0.6.1 spec/lib/configuration_spec.rb
stairs-0.6.0 spec/lib/configuration_spec.rb