Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Participation module #3909

Merged
merged 16 commits into from
Oct 16, 2021
Prev Previous commit
Next Next commit
Refactor tests
  • Loading branch information
entantoencuanto committed Oct 5, 2021
commit 344d540abe6a0bb3456df36b1b0f200702d98937
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module GobiertoCms
class ArchivePageTest < ActionDispatch::IntegrationTest
def setup
super
# @path = admin_participation_process_pages_path(process_id: process.id)
@path = admin_cms_pages_path
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,11 @@ def pdf_attachment
@pdf_attachment ||= gobierto_attachments_attachments(:pdf_attachment)
end

def pdf_collection_attachment
@pdf_collection_attachment ||= gobierto_attachments_attachments(:pdf_collection_attachment)
end

def png_attachment
@png_attachment ||= gobierto_attachments_attachments(:png_attachment_uploaded)
end


def test_view_attachment_document_in_participation_process_context
def test_view_pdf_attachment
with_current_site(site) do
visit gobierto_attachments_document_url(pdf_attachment, host: site.domain)

Expand All @@ -32,7 +27,7 @@ def test_view_attachment_document_in_participation_process_context
end
end

def test_view_attachment_without_context
def test_view_png_attachment
with_current_site(site) do
visit gobierto_attachments_document_url(png_attachment, host: site.domain)

Expand All @@ -47,7 +42,6 @@ def test_wrong_url
assert_equal 404, page.status_code
end
end

end
end
end