diff --git a/spec/classes/mod/php_spec.rb b/spec/classes/mod/php_spec.rb index 32b2ff099..e228dd781 100644 --- a/spec/classes/mod/php_spec.rb +++ b/spec/classes/mod/php_spec.rb @@ -70,7 +70,7 @@ let :params do { :extensions => ['.php','.php5']} end - it { should contain_file("php5.conf").with_content =~ /AddHandler php5-script .php .php5\n/ } + it { should contain_file("php5.conf").with_content(/AddHandler php5-script .php .php5\n/) } end context "with specific version" do let :pre_condition do