X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/9ef89e25a8f7758e1a3478d0c455c9254dff9112..4c730203fde2eb1d6fdcbe11542c6730d11124ae:/features/support/fixtures.rb?ds=inline diff --git a/features/support/fixtures.rb b/features/support/fixtures.rb index 0fa06c0..d9d91de 100644 --- a/features/support/fixtures.rb +++ b/features/support/fixtures.rb @@ -4,7 +4,7 @@ require 'erb' require 'ostruct' require 'yaml' -BASE_SUBSCRIPTIONS = YAML.load(< address: | @@ -61,12 +61,12 @@ membership_fee_paid_on: <%= membership_fee_paid_on %> <%= notes %> END_OF_TEMPLATE -def subscription_filename_for_id(id) +def member_filename_for_id(id) "Membres/%06d.mdwn" % id end -def render_subscription_file(locals) - ERB.new(SUBSCRIPTION_FILE_TEMPLATE).result(OpenStruct.new(locals).instance_eval { binding }) +def render_member_file(locals) + ERB.new(MEMBER_FILE_TEMPLATE).result(OpenStruct.new(locals).instance_eval { binding }) end def new_id