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.10.5 spec/config_spec.rb
softcover-1.10.4 spec/config_spec.rb
softcover-1.10.3 spec/config_spec.rb
softcover-1.10.2 spec/config_spec.rb
softcover-1.10.1 spec/config_spec.rb
softcover-1.10.0 spec/config_spec.rb
softcover-1.9.1 spec/config_spec.rb
softcover-1.9.0 spec/config_spec.rb
softcover-1.8.3 spec/config_spec.rb
softcover-1.8.2 spec/config_spec.rb
softcover-1.8.1 spec/config_spec.rb
softcover-1.8.0 spec/config_spec.rb
softcover-1.7.5 spec/config_spec.rb
softcover-1.7.4 spec/config_spec.rb
softcover-1.7.3 spec/config_spec.rb
softcover-1.7.2 spec/config_spec.rb
softcover-1.7.1 spec/config_spec.rb
softcover-1.7.0 spec/config_spec.rb
softcover-1.6.5 spec/config_spec.rb
softcover-1.6.4 spec/config_spec.rb