[DRE-commits] [gem2deb] 05/15: gem_installer_test: extract method
Antonio Terceiro
terceiro at moszumanska.debian.org
Sat Jan 23 19:37:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit fe025466a6d5ea9e4f25629a8ed66f931f618383
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sat Jan 23 12:42:16 2016 -0200
gem_installer_test: extract method
---
test/unit/gem_installer_test.rb | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/test/unit/gem_installer_test.rb b/test/unit/gem_installer_test.rb
index 16e09a6..7a5475c 100644
--- a/test/unit/gem_installer_test.rb
+++ b/test/unit/gem_installer_test.rb
@@ -13,7 +13,7 @@ class GemInstallerTest < Gem2DebTestCase
end
should 'install files to rubygems-integration directory' do
- assert_file_exists INSTALLDIR + '/usr/share/rubygems-integration/all/gems/install_as_gem-0.0.1/lib/install_as_gem.rb'
+ assert_file_exists installed_path('lib/install_as_gem.rb')
end
should 'install binaries to /usr/bin' do
@@ -21,7 +21,14 @@ class GemInstallerTest < Gem2DebTestCase
end
should 'not install debian/ directory' do
- assert_no_file_exists INSTALLDIR + '/usr/share/rubygems-integration/all/gems/install_as_gem-0.0.1/debian'
+ assert_no_file_exists installed_path('debian')
end
+ private
+
+ def installed_path(file)
+ INSTALLDIR + '/usr/share/rubygems-integration/all/gems/install_as_gem-0.0.1/' + file
+ end
+
+
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list