spec/lib/rda/nginx_spec.rb in rda-0.0.6 vs spec/lib/rda/nginx_spec.rb in rda-0.1.0

- old
+ new

@@ -2,11 +2,11 @@ describe Rda::Nginx do subject { Rda::Nginx.new } before do - Rda.configure { nginx_conf_paths Rda::Nginx::DEFAULT_CONF_PATHS } + Rda.configure { nginx_conf_paths ['/etc/nginx', '/usr/local/nginx/conf', '/opt/nginx/conf'] } end describe '#setup' do context 'when nginx is not found' do before do @@ -64,10 +64,10 @@ after do conf = Rda.config.nginx_conf_paths.first FileUtils.rm_r conf if Dir.exists?(conf) - Rda.configure { nginx_conf_paths [Rda::Nginx::DEFAULT_CONF_PATHS] } + Rda.configure { nginx_conf_paths ['/etc/nginx', '/usr/local/nginx/conf', '/opt/nginx/conf'] } end it 'discards the settings' do subject.should_receive(:gsub_file).with("/etc/hosts", "127.0.0.1 dummy.local", '') %W(enabled available).each do |n|