- @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
- }
+ create_directory NosOignons::MEMBERS_DB_DIR
+ @member_db_path = expand_path(NosOignons::MEMBERS_DB_DIR)
+ ENV['NOS_OIGNONS_BOARD_WIKI_PATH'] = expand_path('.')
+end
+
+def new_member_data(name, joined_on, paid_on)
+ { 'name' => name,
+ 'address' => "At #{name}",
+ 'email' => "#{name.downcase}@example.org",
+ 'joined_on' => joined_on,
+ 'membership_fee_paid_on' => paid_on
+ }
+end
+
+def add_member(member_data)
+ @last_member = member_data