mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed styling issues brought up by @jeremy
This commit is contained in:
parent
37e4e9b313
commit
773123178e
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue