Sha256: b7b181235e6de0e65461d5ad49dfa32103a83d57b767d6fd6e3fc108d3ed04ad

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe BitBucket::Response::Jsonize do
  let(:jsonize) { described_class.new }
  before do
    @body = '{"key1":"val1"}'
  end

  it 'parses the json and returns a hash' do
    expect(jsonize.parse(@body)).to eq('key1' => 'val1')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitbuckets-0.2.0 spec/bitbucket_rest_api/response/jsonize_spec.rb