Committed too early, had to fix variable assignment in directory.rb. Tests now pass.