From 04826af3c91bdd3481e6e23b00888a1a7f2bfde0 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Tue, 23 Apr 2013 08:11:40 -0300 Subject: [PATCH] Install nginx on acceptance spec test container instead of apache to speed things up --- spec/Vagrantfile | 2 +- spec/acceptance/sanity_check_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/Vagrantfile b/spec/Vagrantfile index 67d553a..bfcc366 100644 --- a/spec/Vagrantfile +++ b/spec/Vagrantfile @@ -29,5 +29,5 @@ Vagrant.configure("2") do |config| config.vm.network :forwarded_port, guest: 80, host: 8080 config.vm.provision :shell, - inline: 'sudo apt-get install apache2 -y' + inline: 'sudo apt-get install nginx -y && sudo service nginx start' end diff --git a/spec/acceptance/sanity_check_spec.rb b/spec/acceptance/sanity_check_spec.rb index f4b240f..e214d45 100644 --- a/spec/acceptance/sanity_check_spec.rb +++ b/spec/acceptance/sanity_check_spec.rb @@ -36,7 +36,7 @@ describe 'Sanity check' do it 'forwards configured ports' do output = `curl -s localhost:8080`.strip.chomp - expect(output).to include 'It works!' + expect(output).to include 'Welcome to nginx!' end end