mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 22:21:11 +00:00
Drop Organization from specs
This commit is contained in:
parent
275be8c80a
commit
85149dc837
19 changed files with 14 additions and 959 deletions
|
|
@ -4,9 +4,8 @@ require 'spec_helper'
|
|||
|
||||
feature 'Has correct abilities' do
|
||||
|
||||
let(:organization) { create(:organization) }
|
||||
let(:conference) { create(:full_conference, organization: organization) }
|
||||
let(:other_conference) { create(:conference, organization: organization) } # user is organizer, venue is not set by default
|
||||
let(:conference) { create(:full_conference) }
|
||||
let(:other_conference) { create(:conference) } # user is organizer, venue is not set by default
|
||||
let(:role_organizer_conf) { Role.find_by(name: 'organizer', resource: conference) }
|
||||
let(:role_organizer_other_conf) { Role.find_by(name: 'organizer', resource: other_conference) }
|
||||
let(:user_organizer) { create(:user, role_ids: [role_organizer_conf.id, role_organizer_other_conf.id]) }
|
||||
|
|
@ -17,17 +16,6 @@ feature 'Has correct abilities' do
|
|||
sign_in user_organizer
|
||||
end
|
||||
|
||||
scenario 'for organization attributes' do
|
||||
visit admin_organizations_path
|
||||
expect(current_path).to eq(admin_organizations_path)
|
||||
|
||||
visit edit_admin_organization_path(organization)
|
||||
expect(current_path).to eq(root_path)
|
||||
|
||||
visit new_admin_organization_path
|
||||
expect(current_path).to eq(root_path)
|
||||
end
|
||||
|
||||
scenario 'for conference attributes' do
|
||||
visit admin_conference_path(conference.short_title)
|
||||
expect(current_path).to eq(admin_conference_path(conference.short_title))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue