mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:08:57 +08:00
ensure directory at the correct spot
This commit is contained in:
@ -40,9 +40,9 @@ TEXT
|
|||||||
it "can activate plugins correctly" do
|
it "can activate plugins correctly" do
|
||||||
plugin = Plugin.new
|
plugin = Plugin.new
|
||||||
plugin.path = "#{Rails.root}/spec/fixtures/plugins/my_plugin/plugin.rb"
|
plugin.path = "#{Rails.root}/spec/fixtures/plugins/my_plugin/plugin.rb"
|
||||||
plugin.ensure_directory(plugin.auto_generated_path)
|
|
||||||
|
|
||||||
junk_file = "#{plugin.auto_generated_path}/junk"
|
junk_file = "#{plugin.auto_generated_path}/junk"
|
||||||
|
|
||||||
|
plugin.ensure_directory(junk_file)
|
||||||
File.open("#{plugin.auto_generated_path}/junk", "w") {|f| f.write("junk")}
|
File.open("#{plugin.auto_generated_path}/junk", "w") {|f| f.write("junk")}
|
||||||
plugin.activate!
|
plugin.activate!
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user