Skip to content

Commit

Permalink
can load plugins located in library_root
Browse files Browse the repository at this point in the history
  • Loading branch information
machu committed May 4, 2013
1 parent d79c8f0 commit 6504737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/plugin/plugin_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def fake_plugin( name_sym, cgi=nil, base=nil, &block )

def plugin_path( plugin_sym, base=nil )
paths = []
paths << ( base ? base : "misc/plugin" )
paths << ( base ? base : File.join(TDiary.library_root, "misc/plugin") )
paths << "#{plugin_sym.to_s}.rb"
File.expand_path( File.join( paths ))
end
Expand Down

0 comments on commit 6504737

Please sign in to comment.