# frozen_string_literal: true require 'rails_helper' RSpec.describe PKParse::ResponseError, type: :lib do subject(:error) { described_class.new(double(http_body: '{"error": "some error"}')) } it 'sets the error message from response body' do expect(error.message).to eq('some error') end end