2
0
Fork 0
mirror of https://github.com/inspec/inspec synced 2024-12-22 19:13:24 +00:00
inspec/test/unit/utils/database_helpers_test.rb
Ryan Davis 07dc5e3192 First pass at cleaning deprecations for old minitest/spec-style tests.
3 files left to go, and they're behaving oddly so I'm leaving them out
in this pass. Looks like 21 deprecations left.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-10-03 13:45:19 -07:00

18 lines
408 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