Sha256: 8d6ba345280bda0a50bf6102b083159e1a0d923ffd819849c3c6864239f6901b

Contents?: true

Size: 588 Bytes

Versions: 4

Compression:

Stored size: 588 Bytes

Contents

require 'spec_helper'

describe Miu do
  describe 'root' do
    before { Dir.chdir '/tmp' }
    let(:root) { Miu.root }
    it { expect(root).to be_instance_of Pathname }
    it { expect(root.to_s).to eq '/tmp' }
  end

  describe 'default_port' do
    context 'default' do
      it { expect(Miu.default_port).to eq 22200 }
    end

    context 'overwrite' do
      before { ENV['MIU_DEFAULT_PORT'] = '12345' }
      after { ENV.delete 'MIU_DEFAULT_PORT' }
      it { expect(Miu.default_port).to be_instance_of Fixnum }
      it { expect(Miu.default_port).to eq 12345 }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miu-0.2.3 spec/miu_spec.rb
miu-0.2.2 spec/miu_spec.rb
miu-0.2.1 spec/miu_spec.rb
miu-0.2.0 spec/miu_spec.rb