./lib/customer_request.rb in burger_game-1.0.4 vs ./lib/customer_request.rb in burger_game-1.0.5

- old
+ new

@@ -3,11 +3,11 @@ class CustomerRequest # ERROR HANDLING for reading files begin # Read customer_request.JSON file - customer_file = File.read('./lib/customer_request.json') + customer_file = File.read('customer_request.json') rescue Errno::ENOENT => e puts "Could not find customer_request.json file. Please put customer_request.json in the 'data' directory." puts e.message exit rescue => e @@ -16,10 +16,10 @@ exit end begin # Read customer_response.JSON file - response_file = File.read('./lib/customer_response.json') + response_file = File.read('customer_response.json') rescue Errno::ENOENT => e puts "Could not find customer_response.json file. Please put customer_response.json in the 'data' directory." puts e.message exit rescue => e \ No newline at end of file