inspec/test/unit/utils/database_helpers_test.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

18 lines
402 B
Ruby

require "helper"
require "inspec/utils/database_helpers"
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