mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 06:01:12 +00:00
Show code of conduct on organizations
This commit is contained in:
parent
a6daff8582
commit
217ec1a46f
5 changed files with 30 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue