Sha256: 38d60108bc67c4782063daee58dd3984ae31d95fcab50e388a314cbf1dfd366a
Contents?: true
Size: 686 Bytes
Versions: 1
Compression:
Stored size: 686 Bytes
Contents
require 'spec_helper' describe ExerciseConfirmationsController, organization_workspace: :test do let(:user) { create(:user) } let(:reading) { create(:reading) } context 'when not authenticated' do before { post :create, params: { exercise_id: reading.id } } it { expect(response.status).to eq 403 } end context 'when authenticated' do before { set_current_user! user } before { post :create, params: { exercise_id: reading.id } } it { expect(response.status).to eq 200 } it { expect(response.body.parse_json).to json_like(guide_finished_by_solution: true, class_for_progress_list_item: 'progress-list-item text-center success active') } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mumuki-laboratory-5.13.0 | spec/controllers/confirmations_controller_spec.rb |