inspec/test/unit/utils/database_helpers_test.rb
Miah Johnson 659b4b373a Remove # encoding: utf8 magic comments
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 16:06:23 -07:00

18 lines
363 B
Ruby

require 'helper'
describe DatabaseHelper do
describe DatabaseHelper::SQLColumn do
def column(row = { 'test' => 'value' })
DatabaseHelper::SQLColumn.new(row, 'test')
end
it 'has a valid column value' do
column.value.must_equal 'value'
end
it 'returns empty when nil' do
column(nil).value.must_equal ''
end
end
end