zsh-autosuggestions/spec
Eric Freese 05f22fa8a3 Fix flaky special char specs by not using with_history twice per test
There's something funny occasionally happening when `with_history` is
used twice in the same test. It seems to be happening more frequently
since asynchronous mode was enabled by default. My guess is it has
something to do with the `C-c` keys being sent toward the end not
consistently terminating the prompt. But I'm really not sure how it
would ever get into a `then` block like it seems to:

```
Failure/Error: wait_for { session.content }.to eq('echo "hello\nworld"')

  expected: "echo \"hello\\nworld\""
       got: "then> echo \"hello\\"
```

Sticking to only one `with_history` per terminal session (per test)
seems to fix the flakiness.

I also removed an old test case because I could not understand why it
was necessary and so couldn't write a good description for it. Could be
we'll need to add it back in at some point.
2020-05-06 23:43:26 -06:00
..
integrations Fix deleting last character in vi mode (#302) 2019-06-22 16:34:42 -06:00
options Enable async mode by default in newer versions of zsh 2020-01-26 21:18:49 -07:00
strategies Fix flaky special char specs by not using with_history twice per test 2020-05-06 23:43:26 -06:00
widgets Enabling suggestions should not fetch a suggestion if buffer is empty 2017-03-05 12:53:13 -05:00
async_spec.rb Don't fetch suggestions after copy-earlier-word 2019-06-14 13:19:07 -06:00
kill_ring_spec.rb Don't break kill ring rotation 2018-05-15 12:54:09 -06:00
line_init_spec.rb Remove hard-coded ignore of zle-* widgets and add to default config 2019-06-14 16:38:28 -06:00
multi_line_spec.rb Rewrite with_history test helper to be more robust 2020-05-06 07:31:37 -06:00
spec_helper.rb Rewrite with_history test helper to be more robust 2020-05-06 07:31:37 -06:00
terminal_session.rb Revert async process substitution & completion strategy 2018-12-16 20:49:06 -07:00