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