diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-03 09:12:24 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-03 09:12:24 +0200 |
commit | e65731bb7ebf58366c185a10e50ec1db6eb495c4 (patch) | |
tree | 15c5dd5071ec0a811a11fe07cd8c7c2ddd56b43b | |
parent | a1999955eb0b212c818a383bc54f8392194d0bc1 (diff) | |
download | gitlab-ce-e65731bb7ebf58366c185a10e50ec1db6eb495c4.tar.gz |
Add concerns to autoload
-rw-r--r-- | config/application.rb | 2 | ||||
-rw-r--r-- | spec/models/concerns/issuable_spec.rb (renamed from spec/lib/issue_commonality_spec.rb) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/application.rb b/config/application.rb index d6bb90a3052..d71de88ebe3 100644 --- a/config/application.rb +++ b/config/application.rb @@ -16,7 +16,7 @@ module Gitlab # -- all .rb files in that directory are automatically loaded. # 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). # :all can be used as a placeholder for all plugins not explicitly named. diff --git a/spec/lib/issue_commonality_spec.rb b/spec/models/concerns/issuable_spec.rb index 11f278dea10..b5d4bd7b406 100644 --- a/spec/lib/issue_commonality_spec.rb +++ b/spec/models/concerns/issuable_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Issue, "IssueCommonality" do +describe Issue, "Issuable" do let(:issue) { create(:issue) } describe "Associations" do |