Commit e65731bb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add concerns to autoload

parent a1999955
...@@ -16,7 +16,7 @@ module Gitlab ...@@ -16,7 +16,7 @@ module Gitlab
# -- all .rb files in that directory are automatically loaded. # -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable. # Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/lib) config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/models/concerns)
# Only load the plugins named here, in the order given (default is alphabetical). # Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named. # :all can be used as a placeholder for all plugins not explicitly named.
......
require 'spec_helper' require 'spec_helper'
describe Issue, "IssueCommonality" do describe Issue, "Issuable" do
let(:issue) { create(:issue) } let(:issue) { create(:issue) }
describe "Associations" do describe "Associations" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment