require'helper'moduleArelmoduleVisitorsdescribe'the mssql visitor'dobeforedo@visitor=MSSQL.newTable.engineendit'uses TOP to limit results'dostmt=Nodes::SelectStatement.newstmt.cores.last.top=Nodes::Top.new(1)sql=@visitor.accept(stmt)sql.must_be_like"SELECT TOP 1"endendendend