Show code of conduct on organizations

This commit is contained in:
James Mason 2018-03-16 12:18:09 -07:00 committed by Ana María Martínez Gómez
parent a6daff8582
commit 217ec1a46f
5 changed files with 30 additions and 7 deletions

View file

@ -30,5 +30,19 @@ feature 'Code of Conduct:' do
end
end
end
describe 'anonymously' do
let!(:organization) { create(:organization, code_of_conduct: sample_text) }
context 'on the organization' do
it 'can be read' do
visit organizations_path
within "#organization-#{organization.id}" do
click_on 'Code of Conduct'
end
expect(page).to have_text(sample_text)
end
end
end
end
end