Feature: Folding
Scenario: Toggle fold collapses a foldable block
Given the buffer contains:
"""
fn foo() {
bar();
}
"""
And the cursor is at row 0, col 0
When I run "editor.toggle_fold"
Then line 0 is folded
Scenario: Toggle fold twice uncollapses the block
Given the buffer contains:
"""
fn foo() {
bar();
}
"""
And the cursor is at row 0, col 0
When I run "editor.toggle_fold"
And I run "editor.toggle_fold"
Then line 0 is not folded