Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed styling issues brought up by @jeremy

  • Loading branch information...
commit 773123178eaee60b32661cf1f5c4707dac3eb749 1 parent 37e4e9b
Jason Noble jasonnoble authored
2  railties/lib/rails/source_annotation_extractor.rb
View
@@ -51,7 +51,7 @@ def initialize(tag)
# 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
3  railties/test/application/rake/notes_test.rb
View
@@ -13,7 +13,6 @@ def teardown
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 @@ def teardown
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"
Please sign in to comment.
Something went wrong with that request. Please try again.