OSDN Git Service

Add concerns to autoload
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 3 Jan 2013 07:12:24 +0000 (09:12 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 3 Jan 2013 07:12:24 +0000 (09:12 +0200)
config/application.rb
spec/models/concerns/issuable_spec.rb [moved from spec/lib/issue_commonality_spec.rb with 98% similarity]

index d6bb90a..d71de88 100644 (file)
@@ -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.
similarity index 98%
rename from spec/lib/issue_commonality_spec.rb
rename to spec/models/concerns/issuable_spec.rb
index 11f278d..b5d4bd7 100644 (file)
@@ -1,6 +1,6 @@
 require 'spec_helper'
 
-describe Issue, "IssueCommonality" do
+describe Issue, "Issuable" do
   let(:issue) { create(:issue) }
 
   describe "Associations" do