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 3280e68 commit 18b7620Copy full SHA for 18b7620
spec/bitbucket_rest_api/response/jsonize_spec.rb
@@ -0,0 +1,12 @@
1
+require 'spec_helper'
2
+
3
+describe BitBucket::Response::Jsonize do
4
+ let(:jsonize) { described_class.new }
5
+ before do
6
+ @body = "{\"key1\":\"val1\"}"
7
+ end
8
9
+ it "parses the json and returns a hash" do
10
+ expect(jsonize.parse(@body)).to eq({"key1"=>"val1"})
11
12
+end
0 commit comments