Sha256: 060d111526b17bd889208643a1df7038f64bf1e09886d2d7885813370ba89d32
Contents?: true
Size: 562 Bytes
Versions: 2
Compression:
Stored size: 562 Bytes
Contents
require 'spec_helper' describe CmQuiz::Review::SignUpUser 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::SignUpUser.new({ project_api: project_api }) end it "should pass test" do test_result = service.perform expect(test_result).to eq(["post /users", 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/sign_up_user_spec.rb |
cm_quiz-0.0.1 | spec/lib/cm_quiz/review/sign_up_user_spec.rb |