Commit Graph

8 Commits (f8907cf32b1aefc6868c4f0d1fb77286d1a0f9b3)

Author SHA1 Message Date
Eric Freese e715ffb1ae Rewrite `with_history` test helper to be more robust
Write mock history to a temp file and load it directly with `fc -R`
instead of running each command individually to build up the history.
Eric Freese e7c7efe2e2 Set options immediately after sourcing the plugin before next precmd
So that you can access defaults to e.g. add elements to an existing
array.
Eric Nielsen 9e4d3c337f Don't overwrite config with default values
otherwise users are obliged to set the config values *after* sourcing
the plugin. They're not able to do it before. Also, re-sourcing the
plugin will reset the values to the defaults again.

See zimfw/zimfw#301

Fixes 
Eric Freese f0f1332e6b Add `after_sourcing` hook for tests
Is executed immediately after sourcing the plugin
Eric Freese ed8056c5e8 Lots of async changes
Eric Freese 89dd69d517 Add pry gem for debugging support
Eric Freese 07a6768fcb Add TerminalSession helper for managing a tmux session
Eric Freese e6591d5de0 Add RSpec for high-level integration testing