[SCM] vim-addon-manager packaging branch, master, updated. v0.4.4-57-gc3d8a72
Antonio Terceiro
terceiro at debian.org
Wed Feb 1 01:12:27 UTC 2012
The following commit has been merged in the master branch:
commit 09bb244d3f9d701a7c73e5248a9a2fdaab6a3021
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Jan 31 22:51:23 2012 -0200
Better test console
Gives you registry, target_dir, addon(addonname) etc
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index e9bdc6c..38c36ff 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -52,6 +52,7 @@ module VimAddonManagerSpecHelper
end
+require 'rspec'
RSpec.configure do |config|
config.before { Vim::AddonManager.logger.quiet! }
config.after { FileUtils.rm_rf(tmpdir) }
diff --git a/test/console b/test/console
index c80ffb0..e6af501 100755
--- a/test/console
+++ b/test/console
@@ -2,4 +2,4 @@
root=$(dirname $0 | xargs dirname | xargs readlink -f)
-irb -I$root/lib -rvim/addon_manager -rvim/addon_manager/registry
+irb -I$root/lib -rvim/addon_manager -rvim/addon_manager/registry -r./spec/spec_helper -r'./test/console.rb'
diff --git a/test/console.rb b/test/console.rb
new file mode 100644
index 0000000..9b487ea
--- /dev/null
+++ b/test/console.rb
@@ -0,0 +1 @@
+include VimAddonManagerSpecHelper
--
vim-addon-manager packaging
More information about the pkg-vim-maintainers
mailing list