Include code of conduct on conference

This commit is contained in:
James Mason 2018-03-16 12:49:00 -07:00 committed by Ana María Martínez Gómez
parent 217ec1a46f
commit 95196c7f80
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