@@ -27,12 +27,12 @@ module System
2727 users_registration_mode : "enabled" ,
2828 force_users_to_authenticate_before_access_organization : "false" ,
2929 smtp_settings : {
30- " address" => "mail.gotham.gov" ,
31- " port" => "25" ,
32- " user_name" => "f.laguardia" ,
33- " password" => Decidim ::AttributeEncryptor . encrypt ( "password" ) ,
34- " from_email" => "decide@gotham.gov" ,
35- " from_label" => from_label
30+ address : "mail.gotham.gov" ,
31+ port : "25" ,
32+ user_name : "f.laguardia" ,
33+ password : Decidim ::AttributeEncryptor . encrypt ( "password" ) ,
34+ from_email : "decide@gotham.gov" ,
35+ from_label : from_label
3636 } ,
3737 omniauth_settings_facebook_enabled : true ,
3838 omniauth_settings_facebook_app_id : "facebook-app-id" ,
@@ -52,6 +52,7 @@ module System
5252 expect ( organization . host ) . to eq ( "decide.gotham.gov" )
5353 expect ( organization . secondary_hosts ) . to match_array ( [ "foo.gotham.gov" , "bar.gotham.gov" ] )
5454 expect ( organization . smtp_settings [ "from" ] ) . to eq ( "Decide Gotham <decide@gotham.gov>" )
55+ expect ( organization . smtp_settings [ "from_email" ] ) . to eq ( "decide@gotham.gov" )
5556 expect ( organization . omniauth_settings [ "omniauth_settings_facebook_enabled" ] ) . to eq ( true )
5657 expect (
5758 Decidim ::AttributeEncryptor . decrypt ( organization . omniauth_settings [ "omniauth_settings_facebook_app_id" ] )
@@ -109,6 +110,7 @@ module System
109110 organization = Organization . last
110111
111112 expect ( organization . smtp_settings [ "from" ] ) . to eq ( "decide@gotham.gov" )
113+ expect ( organization . smtp_settings [ "from_email" ] ) . to eq ( "decide@gotham.gov" )
112114 end
113115 end
114116 end
0 commit comments