Skip to content

Commit 18b7620

Browse files
committed
Add response/jsonize_spec
1 parent 3280e68 commit 18b7620

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
end
12+
end

0 commit comments

Comments
 (0)