From 5db24d8e3388aefb5e7a4fc830cbf4617a44f9f8 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Mon, 5 Aug 2013 13:41:25 -0700 Subject: [PATCH] Update specs for #145 --- spec/defines/ppa_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/defines/ppa_spec.rb b/spec/defines/ppa_spec.rb index ae91e58..dfaf09c 100644 --- a/spec/defines/ppa_spec.rb +++ b/spec/defines/ppa_spec.rb @@ -67,13 +67,13 @@ describe 'apt::ppa', :type => :define do proxy_host => false }' end - let :filename do - "#{title}-#{release}.list" - end + let :filename do + "#{title}-#{release}.list" + end it { should contain_exec("add-apt-repository-#{title}").with( 'environment' => [], - 'command' => "/usr/bin/add-apt-repository #{title}", + 'command' => "/usr/bin/add-apt-repository #{options} #{title}", 'creates' => "/etc/apt/sources.list.d/#{filename}", 'require' => ["File[/etc/apt/sources.list.d]", "Package[#{package}]"], 'notify' => "Exec[apt_update]"