add tests for organization name in conference views
remove tests for organization name in conference#edit
This commit is contained in:
parent
cdc08052b1
commit
17eacaec0d
4 changed files with 8 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
%h1
|
%h1
|
||||||
%span.fa.fa-tachometer
|
%span.fa.fa-tachometer
|
||||||
Dashboard for #{@conference.title} ( by #{@conference.organization.name} )
|
Dashboard for #{@conference.title}
|
||||||
%hr
|
%hr
|
||||||
.row
|
.row
|
||||||
.col-sm-4.col-xs-4
|
.col-sm-4.col-xs-4
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,10 @@
|
||||||
%span.icon-bar
|
%span.icon-bar
|
||||||
%span.icon-bar
|
%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'
|
= link_to (ENV['OSEM_NAME'] || 'OSEM'), root_path, class: 'navbar-brand', title: 'Open Source Event Manager'
|
||||||
- else
|
- 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
|
.collapse.navbar-collapse
|
||||||
- if content_for :splash_nav
|
- if content_for :splash_nav
|
||||||
%ul.nav.navbar-nav#splash-nav
|
%ul.nav.navbar-nav#splash-nav
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
= yield(:head)
|
= yield(:head)
|
||||||
%body
|
%body
|
||||||
= render 'layouts/navigation'
|
= render 'layouts/navigation', conference: @conference
|
||||||
-# Admin area
|
-# Admin area
|
||||||
- if controller.class.name.split("::").first=="Admin"
|
- if controller.class.name.split("::").first=="Admin"
|
||||||
= render 'layouts/admin'
|
= render 'layouts/admin'
|
||||||
|
|
|
||||||
|
|
@ -73,11 +73,11 @@ feature Conference do
|
||||||
describe 'admin' do
|
describe 'admin' do
|
||||||
let!(:conference) { create(:conference) }
|
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
|
sign_in user
|
||||||
visit edit_admin_conference_path(conference.short_title)
|
visit admin_conference_path(conference.short_title)
|
||||||
org_id = find('#conference_organization_id').value
|
|
||||||
expect(Organization.find(org_id)).to eq conference.organization
|
expect(find('.navbar-brand').text).to eq "#{conference.organization.name} Organization"
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'add and update conference'
|
it_behaves_like 'add and update conference'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue