inspec/test/unit/utils/database_helpers_test.rb

19 lines
408 B
Ruby
Raw Normal View History

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