X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/a9210121343f6bcb52154a2ca3cf2cff234e8857..163b8390d4b23df988c533e5443a479b64f94264:/features/support/fixtures.rb diff --git a/features/support/fixtures.rb b/features/support/fixtures.rb index 42d46ee..3c74f4b 100644 --- a/features/support/fixtures.rb +++ b/features/support/fixtures.rb @@ -35,10 +35,6 @@ BASE_MEMBERS = YAML.load(< +<% unless address.nil? -%> address: | <%= address.gsub(/^/, ' ').rstrip %> +<% end -%> email: <%= email %> joined_on: <%= joined_on %> membership_fee_paid_on: <%= membership_fee_paid_on %> @@ -88,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