Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
(CONT-950) - Address rubocop
  • Loading branch information
jordanbreen28 committed May 2, 2023
commit d0ff0ac1af28376d2b47856a59c78ef3dcc2358b
16 changes: 8 additions & 8 deletions spec/defines/server/config_entry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,28 @@
end
end

context 'passes values through appropriately' do
context 'passes a string value through appropriately' do
let(:params) { { ensure: 'present', name: 'string_value', value: 'entry_test' } }

it 'as a String' do
it 'and adds string value to config' do
expect(subject).to contain_postgresql_conf('string_value').with(name: 'string_value',
value: 'entry_test')
value: 'entry_test')
end
end

context 'passes values through appropriately' do
context 'passes an integer value through appropriately' do
let(:params) { { ensure: 'present', name: 'integer_value', value: 40 } }

it 'as an Integer' do
it 'and adds integer value to config' do
expect(subject).to contain_postgresql_conf('integer_value').with(name: 'integer_value',
value: 40)
value: 40)
end
end

context 'passes values through appropriately' do
context 'passes a float value through appropriately' do
let(:params) { { ensure: 'present', name: 'floating_point_value', value: 4.0 } }

it 'a Float' do
it 'and adds float value to config' do
expect(subject).to contain_postgresql_conf('floating_point_value').with(name: 'floating_point_value',
value: 4.0)
end
Expand Down