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
Fix memoized methods
  • Loading branch information
entantoencuanto committed Oct 6, 2021
commit 2ded4d0830f3fe9d81d92d8b01dc14d7319fe576
8 changes: 2 additions & 6 deletions test/integration/gobierto_cms/visit_pages_collection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@ def santander_cms_collection
@santander_cms_collection ||= gobierto_common_collections(:santander_cms_pages)
end



def madrid_cms_collection
@participation_collection ||= gobierto_common_collections(:site_pages)
@madrid_cms_collection ||= gobierto_common_collections(:site_pages)
end

def madrid_cms_collection_pages
@participation_collection_pages ||= madrid.pages.where(collection_id: madrid_cms_collection.id).active
@madrid_cms_collection_pages ||= madrid.pages.where(collection_id: madrid_cms_collection.id).active
end

def madrid_cms_collection_page
@madrid_cms_collection_page ||= madrid_cms_collection_pages.first
end


def test_visit_collection
collection_public_pages = [
gobierto_cms_pages(:cms_section_l0_p0_page),
Expand Down Expand Up @@ -84,6 +81,5 @@ def test_visit_madrid_cms_collection

end
end

end
end