junegunn / junegunn/vader.vim

No possible to mark default vader temp test file as modified

Open
#143 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
599
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Given the vader test below, if found out that it is not possible to mark the vader temporary test file as modified.

```vader
Given (whatever):
Bear claw gummi bears brownie cake. Sesame snaps cotton candy powder macaroon.

Do (Mark file as modified):
:let &mod = 1\
:let &ro = 0\

Then (whatever):
Log 'modified: ' . &mod
Log 'readonly: ' . &ro

Expect (whatever):
Bear claw gummi bears brownie cake. Sesame snaps cotton candy powder macaroon.
```

results will be:
```vim
modified: 0
readonly: 0
```
Any idea how to work around that?
It this case [Given/Do/Then/Expect] does Vader create a temp file behind the scene?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.