mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 22:21:11 +00:00
Implement role authorization
This commit is contained in:
parent
6755328c4c
commit
e2fb434dc7
122 changed files with 1386 additions and 751 deletions
|
|
@ -1,7 +1,8 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe ConferenceController do
|
||||
let(:conference) { create(:conference) }
|
||||
let(:conference) { create(:conference, make_conference_public: true) }
|
||||
|
||||
describe 'GET #show' do
|
||||
context 'conference made public' do
|
||||
it 'assigns the requested conference to conference' do
|
||||
|
|
@ -24,7 +25,7 @@ describe ConferenceController do
|
|||
|
||||
it 'renders flash saying conference not ready' do
|
||||
get :show, id: conference.short_title
|
||||
expect(flash[:notice]).to eq("Conference not ready yet!!")
|
||||
expect(flash[:alert]).to eq('You are not authorized to access this page.')
|
||||
end
|
||||
end
|
||||
context 'gallery photos for splash' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue