Sha256: fe5c474753d710643a2f562e46368fb51ae0ffd72d2237986e7506c1e688a3bb
Contents?: true
Size: 509 Bytes
Versions: 48
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' describe ExamRegistrationsController, type: :controller, organization_workspace: :test do describe 'show' do context 'when registration does not exist' do before { get :show, params: {id: 0} } it { expect(response.status).to eq 404 } end context 'when registration exists' do let!(:registration) { create(:exam_registration) } before { get :show, params: {id: registration.id} } it { expect(response.status).to eq 200 } end end end
Version data entries
48 entries across 48 versions & 1 rubygems