tracks/ruby/lib/tasks/exercise.rb in trackler-2.1.0.10 vs tracks/ruby/lib/tasks/exercise.rb in trackler-2.1.0.11
- old
+ new
@@ -21,10 +21,10 @@
def directory
"exercises/#{name}/."
end
def example_file
- File.exist?(example_filename) ? example_filename : legacy_example_filename
+ File.exist?(File.join(directory, example_filename)) ? example_filename : legacy_example_filename
end
def testable_example_file
"#{base_file_name}.rb"
end