added feature test and permissions for custom_domain

This commit is contained in:
shlok007 2017-08-03 11:15:19 +05:30
parent 364adffdab
commit 52cdb41618
3 changed files with 11 additions and 2 deletions

View file

@ -68,6 +68,15 @@ feature Conference do
expect(conference.short_title).to eq('NewCon')
expect(Conference.count).to eq(expected_count)
end
scenario 'show custom domain of a conference', feature: true, js: true do
conference = create(:conference, custom_domain: 'mydomain.conf')
sign_in user
visit custom_domain_admin_conference_path(conference.short_title)
expect(page).to have_text('mydomain.conf')
end
end
describe 'admin' do