Sha256: d6437fa458908ab57760e5831a6c33896af8a3bae073e945a3c1c7f8ec77a2fd

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true
describe BitBucket do
  let(:api) { BitBucket }

  describe 'register_constant' do
    it 'sets a constant' do
      api.register_constant(const_1: 'value1')
    end
  end

  describe 'lookup_constant' do
    it "returns the constant's value" do
      expect(api.lookup_constant('CONST_1')).to eq 'value1'
      expect { api.lookup_constant('UNKNOWN_CONSTANT') }.to raise_error NameError
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitbuckets-0.2.0 spec/bitbucket_rest_api_spec.rb