Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Make apt::setting notify Exec['apt_update'] by default
[puppet-modules/puppetlabs-apt.git]
/
spec
/
defines
/
source_spec.rb
diff --git
a/spec/defines/source_spec.rb
b/spec/defines/source_spec.rb
index ad986e96843b28ac50efe2138d634092908fa608..5e2728b25138274c5e9515f86f40fa6d5f8a065b 100644
(file)
--- a/
spec/defines/source_spec.rb
+++ b/
spec/defines/source_spec.rb
@@
-27,7
+27,7
@@
describe 'apt::source', :type => :define do
}
end
}
end
- it { is_expected.to contain_apt__setting('list-my_source').
that_notifies('Exec[apt_update]').
with({
+ it { is_expected.to contain_apt__setting('list-my_source').with({
'ensure' => 'present',
}).with_content(/# my_source\ndeb-src wheezy main\n/)
}
'ensure' => 'present',
}).with_content(/# my_source\ndeb-src wheezy main\n/)
}
@@
-58,7
+58,7
@@
describe 'apt::source', :type => :define do
}
end
}
end
- it { is_expected.to contain_apt__setting('list-my_source').
that_notifies('Exec[apt_update]').
with({
+ it { is_expected.to contain_apt__setting('list-my_source').with({
'ensure' => 'present',
}).with_content(/# foo\ndeb \[arch=x86_64 trusted=yes\] http:\/\/debian\.mirror\.iweb\.ca\/debian\/ sid testing\n/).without_content(/deb-src/)
}
'ensure' => 'present',
}).with_content(/# foo\ndeb \[arch=x86_64 trusted=yes\] http:\/\/debian\.mirror\.iweb\.ca\/debian\/ sid testing\n/).without_content(/deb-src/)
}
@@
-95,7
+95,7
@@
describe 'apt::source', :type => :define do
}
end
}
end
- it { is_expected.to contain_apt__setting('list-my_source').
that_notifies('Exec[apt_update]').
with({
+ it { is_expected.to contain_apt__setting('list-my_source').with({
'ensure' => 'present',
}).with_content(/# my_source\ndeb \[trusted=yes\] wheezy main\n/)
}
'ensure' => 'present',
}).with_content(/# my_source\ndeb \[trusted=yes\] wheezy main\n/)
}
@@
-117,7
+117,7
@@
describe 'apt::source', :type => :define do
}
end
}
end
- it { is_expected.to contain_apt__setting('list-my_source').
that_notifies('Exec[apt_update]').
with({
+ it { is_expected.to contain_apt__setting('list-my_source').with({
'ensure' => 'present',
}).with_content(/# my_source\ndeb-src \[arch=x86_64 \] wheezy main\n/)
}
'ensure' => 'present',
}).with_content(/# my_source\ndeb-src \[arch=x86_64 \] wheezy main\n/)
}
@@
-137,7
+137,7
@@
describe 'apt::source', :type => :define do
}
end
}
end
- it { is_expected.to contain_apt__setting('list-my_source').
that_notifies('Exec[apt_update]').
with({
+ it { is_expected.to contain_apt__setting('list-my_source').with({
'ensure' => 'absent'
})
}
'ensure' => 'absent'
})
}