Sentence:  He little dreamt when he set out / Of running such <WSD>a rig</WSD>. 
Meaning of the word marked with <WSD> tags:  A sportive or unbecoming trick; a frolic.