Skip to content

Commit 6f8c5a5

Browse files
committed
upgrade basic specs
1 parent 7aa9d0c commit 6f8c5a5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

spec/classes/nodejs_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@
8484
end
8585
end
8686

87-
context 'and repo_priority set to 1010' do
87+
context 'and repo_priority set to 10' do
8888
let :params do
89-
default_params.merge!(repo_priority: '1010')
89+
default_params.merge!(repo_priority: '10')
9090
end
9191

92-
it 'the repo apt::pin resource should contain priority = 1010' do
93-
is_expected.to contain_apt__pin('nodesource').with('priority' => '1010')
92+
it 'the repo apt::source resource should contain pin = 10' do
93+
is_expected.to contain_apt__pin('nodesource').with('priority' => '10')
9494
end
9595
end
9696

@@ -99,8 +99,8 @@
9999
default_params.merge!(repo_priority: :undef)
100100
end
101101

102-
it 'the repo apt::source resource should contain priority = undef' do
103-
is_expected.to contain_apt__source('nodesource').with('priority' => nil)
102+
it 'the repo apt::source resource should contain priority = 990' do
103+
is_expected.to contain_apt__pin('nodesource').with('priority' => 990)
104104
end
105105
end
106106

@@ -109,7 +109,7 @@
109109
default_params.merge!(repo_version: '9')
110110
end
111111

112-
it 'the repo apt::source resource should contain location = https://deb.nodesource.com/node_9.x' do
112+
it 'the repo apt::source resource should contain location = [https://deb.nodesource.com/node_9.x]' do
113113
is_expected.to contain_apt__source('nodesource').with('location' => ['https://deb.nodesource.com/node_9.x'])
114114
end
115115
end

0 commit comments

Comments
 (0)