Sha256: 0e053c32f1ac6b85a090def35c7ef8873a2f08c19031be16acda15ce94e3af25

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

describe AnythingHub do
  describe 'test loading rc files' do
    before do
      AnythingHub::HOME_RC_FILE.replace('spec/fixtures/testrc')
    end
    after do
      AnythingHub::HOME_RC_FILE.replace('~/.anything-hubrc')
    end

    context 'when AnythingHub init' do
      before do
        AnythingHub.init
      end

      it 'should set login' do
        AnythingHub.config.login.should eq('ToQoz')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anything-hub-0.0.1 spec/anything-hub_spec.rb