mirror of
https://github.com/openSUSE/osem.git
synced 2026-05-19 06:00:14 -04:00
add tests for organization name in conference views
remove tests for organization name in conference#edit
This commit is contained in:
committed by
Shlok Srivastava
parent
cdc08052b1
commit
17eacaec0d
@@ -1,6 +1,6 @@
|
||||
%h1
|
||||
%span.fa.fa-tachometer
|
||||
Dashboard for #{@conference.title} ( by #{@conference.organization.name} )
|
||||
Dashboard for #{@conference.title}
|
||||
%hr
|
||||
.row
|
||||
.col-sm-4.col-xs-4
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
- if @conference.nil? || @conference.new_record?
|
||||
- if conference.nil? || conference.new_record?
|
||||
= link_to (ENV['OSEM_NAME'] || 'OSEM'), root_path, class: 'navbar-brand', title: 'Open Source Event Manager'
|
||||
- else
|
||||
= link_to (ENV['OSEM_NAME'] || "#{@conference.organization.name} Organization"), organizations_path, class: 'navbar-brand', title: 'Open Source Event Manager'
|
||||
= link_to (ENV['OSEM_NAME'] || "#{conference.organization.name} Organization"), organizations_path, class: 'navbar-brand', title: 'Open Source Event Manager'
|
||||
.collapse.navbar-collapse
|
||||
- if content_for :splash_nav
|
||||
%ul.nav.navbar-nav#splash-nav
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
= yield(:head)
|
||||
%body
|
||||
= render 'layouts/navigation'
|
||||
= render 'layouts/navigation', conference: @conference
|
||||
-# Admin area
|
||||
- if controller.class.name.split("::").first=="Admin"
|
||||
= render 'layouts/admin'
|
||||
|
||||
@@ -73,11 +73,11 @@ feature Conference do
|
||||
describe 'admin' do
|
||||
let!(:conference) { create(:conference) }
|
||||
|
||||
scenario 'has organization name in edit form', feature: true, js: true do
|
||||
scenario 'has organization name in menu bar for conference views', feature: true, js: true do
|
||||
sign_in user
|
||||
visit edit_admin_conference_path(conference.short_title)
|
||||
org_id = find('#conference_organization_id').value
|
||||
expect(Organization.find(org_id)).to eq conference.organization
|
||||
visit admin_conference_path(conference.short_title)
|
||||
|
||||
expect(find('.navbar-brand').text).to eq "#{conference.organization.name} Organization"
|
||||
end
|
||||
|
||||
it_behaves_like 'add and update conference'
|
||||
|
||||
Reference in New Issue
Block a user