Sha256: 485b63feac6fd18c8282d0a6e72d72eb41a720a70c9003bc13262bbe1135adea

Contents?: true

Size: 547 Bytes

Versions: 6

Compression:

Stored size: 547 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

      assert_test_case(service, test_result)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cm_quiz-0.0.8 spec/lib/cm_quiz/review/sign_up_user_spec.rb
cm_quiz-0.0.7 spec/lib/cm_quiz/review/sign_up_user_spec.rb
cm_quiz-0.0.6 spec/lib/cm_quiz/review/sign_up_user_spec.rb
cm_quiz-0.0.5 spec/lib/cm_quiz/review/sign_up_user_spec.rb
cm_quiz-0.0.4 spec/lib/cm_quiz/review/sign_up_user_spec.rb
cm_quiz-0.0.3 spec/lib/cm_quiz/review/sign_up_user_spec.rb