 			p
 			pln install
 		"""
-		output = ''
-		_log = console.log
-		console.log = (x) -> output += "#{x}\n"
-
-		quest = new murq.Quest(source)
-		quest.run()
-
-		console.log = _log
+		startCapture()
+
+		quest = new murq.Quest(source)
+		quest.run()
+
+		endCapture()
 		test.strictEqual output, "Make\n\ninstall\n"
 		test.done()
 

			end
			p 3
		"""
		output = ''
		_write = process.stdout.write
		process.stdout.write = (x) -> output += "#{x}"

		quest = new murq.Quest(source)
		quest.run()

		process.stdout.write = _write
		test.strictEqual output, "12"
		test.done()


			:lab
			p 3
		"""
		startCapture()

		quest = new murq.Quest(source)
		quest.run()

		endCapture()
		test.strictEqual output, "13"
		test.done()

