From d15083d3ee6ca92a6f211494e41198f3a8e9be0f Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 1 Aug 2013 16:13:37 +1000 Subject: [PATCH] ensure directory at the correct spot --- spec/components/plugin_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/components/plugin_spec.rb b/spec/components/plugin_spec.rb index 4d68363671..2a9a28e73c 100644 --- a/spec/components/plugin_spec.rb +++ b/spec/components/plugin_spec.rb @@ -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!