ensure directory at the correct spot

This commit is contained in:
Sam 2013-08-01 16:13:37 +10:00
parent 4fcba7a6f1
commit d15083d3ee
1 changed files with 2 additions and 2 deletions

View File

@ -40,9 +40,9 @@ TEXT
it "can activate plugins correctly" do
plugin = Plugin.new
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"
plugin.ensure_directory(junk_file)
File.open("#{plugin.auto_generated_path}/junk", "w") {|f| f.write("junk")}
plugin.activate!