We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98a6a6 commit 7ce90a0Copy full SHA for 7ce90a0
spec/bitbucket_rest_api_spec.rb
@@ -0,0 +1,17 @@
1
+describe BitBucket do
2
+ let(:api) { BitBucket }
3
+
4
+ describe "register_constant" do
5
+ it "sets a constant" do
6
+ api.register_constant({const_1: 'value1'})
7
+ end
8
9
10
+ describe "lookup_constant" do
11
+ it "returns the constant's value" do
12
+ expect(api.lookup_constant('CONST_1')).to eq 'value1'
13
+ expect{ api.lookup_constant('UNKNOWN_CONSTANT')}.to raise_error NameError
14
15
16
17
+end
0 commit comments