created spec/directory_spec.rb