Merge branch 'master' into issue_1608

This commit is contained in:
Stella Rouzi 2017-08-11 12:06:27 +03:00 committed by GitHub
commit 678d0ae90e
12 changed files with 44 additions and 6 deletions

View file

@ -71,6 +71,15 @@ feature Conference do
end
describe 'admin' do
let!(:conference) { create(:conference) }
scenario 'has organization name in menu bar for conference views', feature: true, js: true do
sign_in user
visit admin_conference_path(conference.short_title)
expect(find('.navbar-brand').text).to eq(conference.organization.name)
end
it_behaves_like 'add and update conference'
end
end

View file

@ -61,4 +61,15 @@ feature Splashpage do
expect(current_path).to eq(root_path)
end
end
context 'public splashpage already created' do
let!(:splashpage) { create(:splashpage, conference: conference, public: true)}
scenario 'should have organization name', feature: true, js: true do
sign_in participant
visit conference_path(conference.short_title)
expect(page).to have_text(conference.organization.name)
end
end
end