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
fixing test
  • Loading branch information
stbnrivas authored and entantoencuanto committed Oct 5, 2021
commit 8b9924db9be755ae440c1d64168f82aac2cbb749
4 changes: 2 additions & 2 deletions test/fixtures/gobierto_core/site_templates.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cortegada_site_template_index:
site_with_template_index:
markup: "<div class='gradient-bg'>My Template</div>"
template: application_layout
site: cortegada
site: site_with_template_replaced
22 changes: 22 additions & 0 deletions test/fixtures/sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,25 @@ organization_wadus:
organization_address:
organization_document_number:
visibility_level: <%= Site.visibility_levels["active"] %>

site_with_template_replaced:
title_translations: <%= { 'en' => 'Transparencia Ciudadana', 'es' => 'Transparencia Ciudadana' }.to_json %>
name_translations: <%= { 'en' => 'Ayuntamiento de ejemplo', 'es' => 'Ayuntamiento de ejemplo' }.to_json %>
domain: example.gobierto.test
configuration_data: <%= {
"links_markup" => %Q{<a href="http:https://www.example.test">Ayuntamiento de ejempo</a>},
"logo" => "",
"modules" => ["GobiertoBudgets"],
"default_locale" => "en",
"available_locales" => ["en", "es"],
"home_page" => "GobiertoBudgets",
"google_analytics_id" => "UA-000000-04",
"auth_modules" => ["null_strategy"] }.to_yaml.inspect %>
organization_name: example_org
organization_id: <%= INE::Places::Place.find_by_slug("cortegada").id %>
organization_url: http:https://www.cortegada.test
organization_type: Ayuntamiento Ejemplo
reply_to_email: [email protected]
organization_address: Fake St., 123
organization_document_number: 0123456789A
visibility_level: <%= Site.visibility_levels["active"] %>
2 changes: 1 addition & 1 deletion test/mailers/gobierto_people/person_mailer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_new_message
assert_equal ["[email protected]"], email.from
assert_equal ["[email protected]"], email.reply_to
assert_equal [person.email], email.to
assert_equal "You have received a new message from Transparencia y Participción", email.subject
assert_equal "You have received a new message from Transparencia y Participación", email.subject
end
end
end
2 changes: 1 addition & 1 deletion test/models/gobierto_core/site_template_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module GobiertoCore
class SiteTemplateTest < ActiveSupport::TestCase
def site_template
@site_template ||= gobierto_core_site_templates(:cortegada_site_template_index)
@site_template ||= gobierto_core_site_templates(:site_with_template_index)
end

def test_valid
Expand Down