This repository was archived by the owner on Jun 11, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,25 @@ language: ruby
2
2
rvm :
3
3
- 1.8.7
4
4
- 1.9.3
5
+ - 2.1.4
5
6
script :
6
- - " bundle exec rake spec SPEC_OPTS='--format documentation'"
7
+ - " bundle exec rake lint spec SPEC_OPTS='--format documentation'"
7
8
env :
8
9
- PUPPET_VERSION="~> 2.7.0"
9
10
- PUPPET_VERSION="~> 3.0.0"
10
11
- PUPPET_VERSION="~> 3.1.0"
11
12
- PUPPET_VERSION="~> 3.2.0"
12
13
- PUPPET_VERSION="~> 3.3.0"
13
14
- PUPPET_VERSION="~> 3.4.0"
15
+ - PUPPET_VERSION="~> 4.2"
14
16
17
+ matrix :
18
+ exclude :
19
+ - rvm : 1,8.7
20
+ env : PUPPET_VERSION="~> 4.2"
21
+ - rvm : 2.1.4
22
+ env : PUPPET_VERSION="~> 2.7.0"
23
+ sudo : false
15
24
gemfile : .gemfile
16
25
notifications :
17
26
email :
Original file line number Diff line number Diff line change 32
32
describe 'Test customizations - template' do
33
33
let ( :params ) { { :template => "git/spec.erb" , :options => { 'opt_a' => 'value_a' } } }
34
34
it 'should generate a valid template' do
35
- content = catalogue . resource ( 'file' , 'git.conf' ) . send ( :parameters ) [ :content ]
36
- content . should match "fqdn: rspec.example42.com"
35
+ should contain_file ( 'git.conf' ) . with_content ( /fqdn: rspec.example42.com/ )
37
36
end
38
37
it 'should generate a template that uses custom options' do
39
- content = catalogue . resource ( 'file' , 'git.conf' ) . send ( :parameters ) [ :content ]
40
- content . should match "value_a"
38
+ should contain_file ( 'git.conf' ) . with_content ( /value_a/ )
41
39
end
42
40
end
43
41
Original file line number Diff line number Diff line change 4
4
<%= scope.to_hash.reject { |k,v| !( k.is_a?(String) && v.is_a?(String) ) }.to_yaml %>
5
5
6
6
# Custom Options
7
- <%= options['opt_a'] %>
8
- <%= options['opt_b'] %>
7
+ <%= @ options['opt_a'] %>
8
+ <%= @ options['opt_b'] %>
You can’t perform that action at this time.
0 commit comments