X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/76f86b5fd3f52363a3ce219310062270ee4eb52a..dbc09190540223245b4e75fc3c7ea2d0690a1a5b:/features/support/fixtures.rb?ds=inline diff --git a/features/support/fixtures.rb b/features/support/fixtures.rb index 0d01e20..3c74f4b 100644 --- a/features/support/fixtures.rb +++ b/features/support/fixtures.rb @@ -68,10 +68,10 @@ END_OF_YAML MEMBER_FILE_TEMPLATE = <<'END_OF_TEMPLATE' --- name: <%= name %> -<% unless address.nil? %> +<% unless address.nil? -%> address: | <%= address.gsub(/^/, ' ').rstrip %> -<% end %> +<% end -%> email: <%= email %> joined_on: <%= joined_on %> membership_fee_paid_on: <%= membership_fee_paid_on %> @@ -86,7 +86,7 @@ def member_filename_for_id(id) end def render_member_file(locals) - ERB.new(MEMBER_FILE_TEMPLATE).result(OpenStruct.new(locals).instance_eval { binding }) + ERB.new(MEMBER_FILE_TEMPLATE, nil, '-').result(OpenStruct.new(locals).instance_eval { binding }) end def new_id