you just have to run the query before the describe
block, strip it and then use expect
on it. something like:
sql_query = sql.query("show pgaudit.log;")
describe sql_query do
its("output") {
expect(sql_query.stdout.strip).to eq('ERROR: unrecognized configuration parameter "pgaudit.log"')
}
end
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…