Commit efbdc718d08d435d17358932592b9a9f10d77c3c
1 parent
02f4901c54
Add tests for bundle-install with updates.
Showing 1 changed file with 14 additions and 3 deletions Inline Diff
tests/install.t
| 1 | Confirm we have no plugins | 1 | Confirm we have no plugins. |
| 2 | 2 | ||
| 3 | $ bundle-list | 3 | $ bundle-list |
| 4 | You don't have any bundles. | 4 | You don't have any bundles. |
| 5 | [1] | 5 | [1] |
| 6 | 6 | ||
| 7 | Record a plugin and install it. | 7 | Record a plugin and install it. |
| 8 | 8 | ||
| 9 | $ bundle lol | 9 | $ bundle lol |
| 10 | $ bundle-install | 10 | $ bundle-install |
| 11 | Cloning into '[-_\.a-zA-Z0-9/\\]+'... (re) | 11 | Cloning into '[-_\.a-zA-Z0-9/\\]+'... (re) |
| 12 | Installing lol | 12 | Installing lol |
| 13 | 13 | ||
| 14 | Check if the lol plugin is correctly loaded. | 14 | Check if the lol plugin is correctly loaded. |
| 15 | 15 | ||
| 16 | $ alias wtf | 16 | $ alias wtf |
| 17 | wtf=dmesg | 17 | wtf=dmesg |
| 18 | 18 | ||
| 19 | On-spot installation | 19 | On-spot installation. |
| 20 | 20 | ||
| 21 | $ bundle-install git | 21 | $ bundle-install git |
| 22 | Installing git | 22 | Installing git |
| 23 | 23 | ||
| 24 | Check if git plugin is loaded correctly. | 24 | Check if git plugin is loaded correctly. |
| 25 | 25 | ||
| 26 | $ alias g | 26 | $ alias g |
| 27 | g=git | 27 | g=git |
| 28 | 28 | ||
| 29 | Confirm the listing of plugins | 29 | Confirm the listing of plugins. |
| 30 | 30 | ||
| 31 | $ bundle-list | 31 | $ bundle-list |
| 32 | lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol | 32 | lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol |
| 33 | git https://github.com/robbyrussell/oh-my-zsh.git plugins/git | 33 | git https://github.com/robbyrussell/oh-my-zsh.git plugins/git |
| 34 | |||
| 35 | Update plugins (test both alternate syntaxes for do this). | ||
| 36 | |||
| 37 | $ bundle-install! | ||
| 38 | Already up-to-date. | ||
| 39 | Installing lol | ||
| 40 | Installing git | ||
| 41 | $ bundle-install --update | ||
| 42 | Already up-to-date. | ||
| 43 | Installing lol | ||
| 44 | Installing git | ||
| 34 | 45 |