Commit 28fe92a1 authored by Rubén Dávila's avatar Rubén Dávila

Fix broken spec

parent 3e7f4801
......@@ -5,7 +5,9 @@ require 'spec_helper'
describe Gitlab::SubscriptionPortal::Client do
describe '#create_trial_account' do
let(:http_response) { nil }
let(:httparty_response) { double(code: http_response.code, response: http_response, body: {}.to_json) }
let(:httparty_response) do
double(code: http_response.code, response: http_response, body: {}, parsed_response: {})
end
subject do
described_class.new.generate_trial({})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment