Include code of conduct on conference

This commit is contained in:
James Mason 2018-03-16 12:49:00 -07:00
parent fe2162491d
commit 511d5c2ed0
No known key found for this signature in database
GPG key ID: 1B3951886C449023
5 changed files with 47 additions and 1 deletions

View file

@ -43,6 +43,24 @@ feature 'Code of Conduct:' do
expect(page).to have_text(sample_text)
end
end
context 'on a conference' do
let!(:conference) { create(:full_conference, organization: organization) }
it 'is linked from the index' do
visit conferences_path
within "#conference-#{conference.id}" do
click_on 'Code of Conduct'
end
expect(page).to have_text(sample_text)
end
it 'is included in the splash page', js: true do
visit conference_path(conference)
click_on 'Code of Conduct'
expect(page).to have_text(sample_text)
end
end
end
end
end