1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-21 12:42:31 +01:00

#356 Print useful information when fuck called and alias isn't configured

This commit is contained in:
nvbn
2015-09-06 13:29:42 +03:00
parent f7ce0fda25
commit 4392872568
7 changed files with 77 additions and 5 deletions

View File

@@ -78,3 +78,9 @@ def without_confirmation(proc, TIMEOUT):
proc.sendline(u'fuck')
assert proc.expect([TIMEOUT, u'echo test'])
assert proc.expect([TIMEOUT, u'test'])
def how_to_configure(proc, TIMEOUT):
proc.sendline(u'unalias fuck')
proc.sendline(u'fuck')
assert proc.expect([TIMEOUT, "alias isn't configured"])