add tests to assign and unassign organization admin role

This commit is contained in:
shlok007 2017-08-22 17:26:11 +05:30 committed by Shlok Srivastava
parent a91c67be0a
commit c596a9fda7
4 changed files with 89 additions and 2 deletions

View file

@ -1,7 +1,6 @@
require 'spec_helper'
describe Admin::RolesController do
let(:conference) { create(:conference) }
let(:organizer_role) { Role.find_by(name: 'organizer', resource: conference) }
let(:cfp_role) { Role.find_by(name: 'cfp', resource: conference) }