Sha256: e053bec4559eb805e0286850152b7f1001c3371b6eae6addda4eeffa425c498d

Contents?: true

Size: 604 Bytes

Versions: 10

Compression:

Stored size: 604 Bytes

Contents

require 'spec_helper'
require 'approvals/configuration'

describe Approvals::Configuration do

  it "defaults to 'fixtures/approvals/'" do
    expect(Approvals.configuration.approvals_path).to eq('fixtures/approvals/')
  end

  describe "when set" do
    before(:each) do
      Approvals.configure do |c|
        c.approvals_path = 'output/dir/'
      end
    end

    after(:each) do
      Approvals.configure do |c|
        c.approvals_path = nil
      end
    end

    it "overrides the output directory" do
      expect(Approvals.configuration.approvals_path).to eq('output/dir/')
    end
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
approvals-0.0.26 spec/configuration_spec.rb
approvals-0.0.25 spec/configuration_spec.rb
approvals-0.0.24 spec/configuration_spec.rb
br-approvals-0.0.22 spec/configuration_spec.rb
approvals-0.0.22 spec/configuration_spec.rb
approvals-0.0.21 spec/configuration_spec.rb
approvals-0.0.20 spec/configuration_spec.rb
approvals-0.0.19 spec/configuration_spec.rb
approvals-0.0.18 spec/configuration_spec.rb
approvals-0.0.17 spec/configuration_spec.rb