Sha256: 5ad46e35873a111f73907c8041c2731ee699320138199addf9d0b57271c8e771

Contents?: true

Size: 342 Bytes

Versions: 12

Compression:

Stored size: 342 Bytes

Contents

require 'spec_helper'

describe Gondler::Env do
  let(:env) { described_class.new }

  describe '#os' do
    subject { env.os }

    it { should == `go env GOOS`.strip }
  end

  describe '#path=' do
    it 'should override path environment' do
      env.path = 'spec'
      env.reload!
      expect(env.path).to eq('spec')
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gondler-0.4.1 spec/gondler/env_spec.rb
gondler-0.4.0 spec/gondler/env_spec.rb
gondler-0.3.1 spec/gondler/env_spec.rb
gondler-0.3.0 spec/gondler/env_spec.rb
gondler-0.2.0 spec/gondler/env_spec.rb
gondler-0.1.3 spec/gondler/env_spec.rb
gondler-0.1.2 spec/gondler/env_spec.rb
gondler-0.1.1 spec/gondler/env_spec.rb
gondler-0.1.0 spec/gondler/env_spec.rb
gondler-0.0.3 spec/gondler/env_spec.rb
gondler-0.0.2 spec/gondler/env_spec.rb
gondler-0.0.1 spec/gondler/env_spec.rb