Sha256: c7aa08833899c1a57e6082868d180a879c44f35497726e8f8937bbceac4429c3

Contents?: true

Size: 407 Bytes

Versions: 9

Compression:

Stored size: 407 Bytes

Contents

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

9 entries across 9 versions & 2 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 spec/bitbucket_rest_api_spec.rb
zz_bitbucket_rest_api-0.1.10 spec/bitbucket_rest_api_spec.rb
zz_bitbucket_rest_api-0.1.9 spec/bitbucket_rest_api_spec.rb
zz_bitbucket_rest_api-0.1.8 spec/bitbucket_rest_api_spec.rb
bitbucket_rest_api2-0.9.5 spec/bitbucket_rest_api_spec.rb
bitbucket_rest_api2-0.9.1 spec/bitbucket_rest_api_spec.rb
bitbucket_rest_api2-0.2.2 spec/bitbucket_rest_api_spec.rb
bitbucket_rest_api2-0.2.1 spec/bitbucket_rest_api_spec.rb
bitbucket_rest_api2-0.2.0 spec/bitbucket_rest_api_spec.rb