Move :plain option to Highlight class
This is to DRY the repeated file size check. Move spec and constants to Highlight
显示
- app/helpers/blob_helper.rb 0 个添加, 1 个删除app/helpers/blob_helper.rb
- app/models/blob.rb 0 个添加, 6 个删除app/models/blob.rb
- app/presenters/blob_presenter.rb 1 个添加, 1 个删除app/presenters/blob_presenter.rb
- app/views/search/results/_snippet_blob.html.haml 1 个添加, 1 个删除app/views/search/results/_snippet_blob.html.haml
- lib/gitlab/highlight.rb 3 个添加, 0 个删除lib/gitlab/highlight.rb
- lib/gitlab/search_results.rb 0 个添加, 4 个删除lib/gitlab/search_results.rb
- spec/helpers/blob_helper_spec.rb 4 个添加, 54 个删除spec/helpers/blob_helper_spec.rb
- spec/lib/gitlab/highlight_spec.rb 60 个添加, 0 个删除spec/lib/gitlab/highlight_spec.rb
- spec/presenters/blob_presenter_spec.rb 5 个添加, 21 个删除spec/presenters/blob_presenter_spec.rb
加载中
想要评论请 注册 或 登录