Sha256: b773041e4384a7a06fe0cf9bf1410a981302ba81b65cba50c9ae8437220babb0

Contents?: true

Size: 505 Bytes

Versions: 127

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

describe Softcover::Config do
  before do
    chdir_to_book
  end

  describe "path" do
    context "local path override" do
      before do
        `touch .softcover`
      end

      it "uses local path" do
        expect(Softcover::Config.path).to eq ".softcover"
      end

      after do
        `rm .softcover`
      end
    end

    context "system path" do
      it "uses home dir" do
        expect(Softcover::Config.path).to eq "~/.softcover"
      end
    end
  end

end

Version data entries

127 entries across 127 versions & 2 rubygems

Version Path
softcover-1.1.11 spec/config_spec.rb
softcover-1.1.10 spec/config_spec.rb
softcover-1.1.9 spec/config_spec.rb
softcover-1.1.8 spec/config_spec.rb
softcover-1.1.7 spec/config_spec.rb
softcover-1.1.6 spec/config_spec.rb
softcover-1.1.4 spec/config_spec.rb
softcover-1.1.3 spec/config_spec.rb
softcover-1.1.2 spec/config_spec.rb
softcover-1.1.1 spec/config_spec.rb
softcover-1.1.0 spec/config_spec.rb
softcover-1.1.beta2 spec/config_spec.rb
softcover-1.0.5 spec/config_spec.rb
softcover-1.1.beta1 spec/config_spec.rb
softcover-1.0.4 spec/config_spec.rb
softcover-1.0.3 spec/config_spec.rb
softcover-1.0.2 spec/config_spec.rb
softcover-1.0.1 spec/config_spec.rb
softcover-1.0.0 spec/config_spec.rb
softcover-1.0.beta17 spec/config_spec.rb