Skip to content

Commit 3280e68

Browse files
committed
Tidy up jsonize_spec
1 parent fa3f5d1 commit 3280e68

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
require 'spec_helper'
22

33
describe BitBucket::Request::Jsonize do
4-
let(:jsonize) { described_class.new }
4+
let(:jsonize) { described_class.new(lambda { |env| env }) }
55
before do
6-
@jsonize = BitBucket::Request::Jsonize.new(lambda { |env| env })
76
@env = {
87
body: {key1: 'val1'},
98
request_headers: {
@@ -14,6 +13,6 @@
1413

1514
it "converts the body to json" do
1615
expected = {body: "{\"key1\":\"val1\"}", request_headers: {"Content-Type"=>"application/json; charset=utf-8"}}
17-
expect(@jsonize.call(@env)).to eq expected
16+
expect(jsonize.call(@env)).to eq expected
1817
end
1918
end

0 commit comments

Comments
 (0)