diff options
author | Jason Noble <github+jasonn@jasonnoble.org> | 2012-04-30 07:51:23 -0600 |
---|---|---|
committer | Jason Noble <github+jasonn@jasonnoble.org> | 2012-04-30 07:51:23 -0600 |
commit | 773123178eaee60b32661cf1f5c4707dac3eb749 (patch) | |
tree | 1ae7bbdaad05bceaf45a4a6214040ee09f73640a | |
parent | 37e4e9b313465a6e7278a0724ff65ea8e1840eec (diff) | |
download | rails-773123178eaee60b32661cf1f5c4707dac3eb749.tar.gz rails-773123178eaee60b32661cf1f5c4707dac3eb749.tar.bz2 rails-773123178eaee60b32661cf1f5c4707dac3eb749.zip |
Fixed styling issues brought up by @jeremy
-rw-r--r-- | railties/lib/rails/source_annotation_extractor.rb | 2 | ||||
-rw-r--r-- | railties/test/application/rake/notes_test.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb index 0f736339ff..31e34023c0 100644 --- a/railties/lib/rails/source_annotation_extractor.rb +++ b/railties/lib/rails/source_annotation_extractor.rb @@ -51,7 +51,7 @@ class SourceAnnotationExtractor # Returns a hash that maps filenames under +dirs+ (recursively) to arrays # with their annotations. - def find(dirs=Annotation.directories) + def find(dirs = Annotation.directories) dirs.inject({}) { |h, dir| h.update(find_in(dir)) } end diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb index 66f95bc821..1348e9aa28 100644 --- a/railties/test/application/rake/notes_test.rb +++ b/railties/test/application/rake/notes_test.rb @@ -13,7 +13,6 @@ module ApplicationTests end test 'notes finds notes for certain file_types' do - app_file "app/views/home/index.html.erb", "<% # TODO: note in erb %>" app_file "app/views/home/index.html.haml", "-# TODO: note in haml" app_file "app/views/home/index.html.slim", "/ TODO: note in slim" @@ -52,8 +51,8 @@ module ApplicationTests end end - test 'notes finds notes in default directories' do + test 'notes finds notes in default directories' do app_file "app/controllers/some_controller.rb", "# TODO: note in app directory" app_file "config/initializers/some_initializer.rb", "# TODO: note in config directory" app_file "lib/some_file.rb", "# TODO: note in lib directory" |