mirror of
https://github.com/inspec/inspec
synced 2024-12-29 14:33:17 +00:00
07dc5e3192
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>
18 lines
408 B
Ruby
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
|