From 42ec6d958ee636ca0d06733548e43f7ec961f3b9 Mon Sep 17 00:00:00 2001 From: Jacob Henner Date: Thu, 15 Mar 2018 23:48:28 -0400 Subject: [PATCH] Fix #1190 Accommodate default package name nginx-mainline for Arch --- spec/classes/nginx_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/classes/nginx_spec.rb b/spec/classes/nginx_spec.rb index 790b77f7f..174b59cc4 100644 --- a/spec/classes/nginx_spec.rb +++ b/spec/classes/nginx_spec.rb @@ -165,6 +165,10 @@ it { is_expected.not_to contain_apt__source('nginx') } it { is_expected.not_to contain_package('passenger') } end + when 'Archlinux' + context 'using defaults' do + it { is_expected.to contain_package('nginx-mainline') } + end else it { is_expected.to contain_package('nginx') } end