spec/api/question_spec.rb in triviacrack-0.4.0 vs spec/api/question_spec.rb in triviacrack-0.5.0

- old
+ new

@@ -3,12 +3,12 @@ describe TriviaCrack::API::Question do let(:session) { TriviaCrack::Session.new session_id: "session", user_id: 1 } let(:client) { (Class.new(APIStub) { include TriviaCrack::API::Question }).new session } - let(:response) { double(code: code, body: raw_data) } + let(:response) { double(status: code, body: raw_data) } - before { allow(Unirest).to receive(:post) { response } } + before { allow(Faraday).to receive(:post) { response } } describe "#answer_question" do subject { client.answer_question game_id, question, answer }