removed unnecessary comments and fixed grammatical errors
This commit is contained in:
parent
651abcab87
commit
d59a036cf1
5 changed files with 7 additions and 12 deletions
|
|
@ -3,11 +3,8 @@ require 'spec_helper'
|
|||
feature 'Has correct abilities' do
|
||||
|
||||
let(:organization) { create(:organization) }
|
||||
# It is necessary to use bang version of let to build roles before user
|
||||
let(:conference) { create(:full_conference, organization: organization) } # user is info_desk
|
||||
|
||||
let(:conference) { create(:full_conference, organization: organization) }
|
||||
let(:role_info_desk) { Role.find_by(name: 'info_desk', resource: conference) }
|
||||
|
||||
let(:user_info_desk) { create(:user, role_ids: [role_info_desk.id]) }
|
||||
|
||||
context 'when user is info desk' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue