Sha256: 3a2c49c80c61e988eb31b9364cf8acb26518729fe7ac9d85ea624fa96c0b9512
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe BitBucket::Request::Jsonize do let(:jsonize) { described_class.new(->(env) { env }) } before do @env = { body: { key1: 'val1' }, request_headers: { 'Content-Type' => 'application/json; charset=utf-8' } } end it 'converts the body to json' do expected = { body: '{"key1":"val1"}', request_headers: { 'Content-Type' => 'application/json; charset=utf-8' } } expect(jsonize.call(@env)).to eq expected end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitbuckets-0.2.0 | spec/bitbucket_rest_api/request/jsonize_spec.rb |