Files
nairobi/spec/features/admin/debates_spec.rb
Javi Martín 940f099505 Move tests for moderated content to their own files
When we renamed hidden controllers in the admin section in commit
85722eb7 we forgot to rename the test files as well.
2019-11-10 12:32:25 +01:00

17 lines
335 B
Ruby

require "rails_helper"
describe "Admin debates" do
before do
admin = create(:administrator)
login_as(admin.user)
end
scenario "Show debate" do
debate = create(:debate)
visit admin_debate_path(debate)
expect(page).to have_content(debate.title)
expect(page).to have_content(debate.description)
end
end