+def init_db
+ @member_db_path = File.join(current_dir, NosOignons::MEMBERS_DB_DIR)
+ ENV['NOS_OIGNONS_BOARD_WIKI_PATH'] = current_dir
+ create_dir @member_db_path
+end
+
+def create_new_member(name, joined_on, paid_on)
+ @last_member = { 'name' => name,
+ 'address' => "At #{name}",
+ 'email' => "#{name.downcase}@example.org",
+ 'joined_on' => joined_on,
+ 'membership_fee_paid_on' => paid_on
+ }
+ init_db unless @member_db_path
+ file = member_filename_for_id(new_id)
+ write_file file, render_member_file(@last_member)
+end
+