Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Actually shell out to test the installer

Just to be sure a3d1f18
never happen again.
  • Loading branch information...
commit fe0cd453e64bb29fbfab56823d859e48347cd3ec 1 parent 11d5329
@sr sr authored
Showing with 6 additions and 8 deletions.
  1. +6 −8 test/acceptance/installer_test.rb
View
14 test/acceptance/installer_test.rb
@@ -18,11 +18,9 @@ def root
Pathname("/tmp/i-haz-integrity")
end
- def install(options={})
- installer = Installer.new
- installer.options = { :passenger => false, :thin => false }.merge!(options)
- stdout, _ = util_capture { installer.install(root.to_s) }
- stdout
+ def install(option="")
+ installer = File.dirname(__FILE__) + "/../../bin/integrity"
+ IO.popen("#{installer} install #{root} #{option}".strip).read
end
scenario "Installing integrity into a given directory" do
@@ -48,14 +46,14 @@ def install(options={})
end
scenario "Installing integrity for Passenger" do
- install(:passenger => true)
+ install("--passenger")
assert root.join("public").directory?
assert root.join("tmp").directory?
end
scenario "Installing Integrity for Thin" do
- install(:thin => true)
+ install("--thin")
config = YAML.load_file(root.join("thin.yml"))
config["chdir"].should == root.to_s
@@ -65,7 +63,7 @@ def install(options={})
end
scenario "Installing Integrity for Heroku" do
- message = install(:heroku => true)
+ message = install("--heroku")
gemifest = root.join(".gems").read
assert gemifest.include?("mailfactory")
Please sign in to comment.
Something went wrong with that request. Please try again.