Sha256: 03ed76d377e52fb4f59c05cd14ade78111af02a92b52935d4409fb9cf169aa46
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
require 'spec_helper' RSpec.describe CmQuiz::Review::LoginUser do describe '#perform' do let!(:project_api) do api = double allow(api).to receive(:request) do |verb, path, opts| double(success?: true, body: { jwt: '', refresh_token: ''}.to_json, code: 200) end api end let(:service) do CmQuiz::Review::LoginUser.new({ project_api: project_api }) end it "should pass test" do test_result = service.perform expect(test_result).to eq(["post /access-tokens", true, nil]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cm_quiz-0.0.2 | spec/lib/cm_quiz/review/login_user_spec.rb |
cm_quiz-0.0.1 | spec/lib/cm_quiz/review/login_user_spec.rb |