<commit_before>@typical_usage
Feature: Delete Vim plugins
  In order to automate boring steps,
  as a lazy Vim user,
  I want to use a declarative way to delete Vim plugins from my configuration.

  Background:
    Given a temporary directory called 'tmp'
    And a home directory called 'home' in '$tmp/home'
    And a repository 'foo' with versions '1.0.0 1.0.1 1.0.2'

  Scenario: Install after deleting some flavors in flavorfile
    Given a repository 'bar' with versions '2.0.0 2.0.1 2.0.2'
    And flavorfile
      """ruby
      flavor '$foo_uri'
      flavor '$bar_uri'
      """
    When I run `vim-flavor install`
    And I edit flavorfile as
      """ruby
      flavor '$bar_uri'
      """
    And I run `vim-flavor install` again
    Then I get lockfile
      """
      $bar_uri (2.0.2)
      """
    And I get a bootstrap script in '$home/.vim'
    And I get flavor 'bar' with '2.0.2' in '$home/.vim'
    But I don't have flavor 'foo' in '$home/.vim'<commit_msg>Refine steps in the scenario about deleting<commit_after>@typical_usage
Feature: Delete Vim plugins
  In order to automate boring steps,
  as a lazy Vim user,
  I want to use a declarative way to delete Vim plugins from my configuration.

  Background:
    Given a temporary directory called 'tmp'
    And a home directory called 'home' in '$tmp/home'
    And a repository 'foo' with versions '1.0.0 1.0.1 1.0.2'
    And a repository 'bar' with versions '2.0.0 2.0.1 2.0.2'

  Scenario: Install after deleting some flavors in flavorfile
    Given flavorfile
      """ruby
      flavor '$foo_uri'
      flavor '$bar_uri'
      """
    And I run `vim-flavor install`
    When I edit flavorfile as
      """ruby
      flavor '$bar_uri'
      """
    And I run `vim-flavor install` again
    Then I get lockfile
      """
      $bar_uri (2.0.2)
      """
    And I get a bootstrap script in '$home/.vim'
    And I get flavor 'bar' with '2.0.2' in '$home/.vim'
    But I don't have flavor 'foo' in '$home/.vim'
{'fraction_non_alphanumeric': 0.10101010101010101, 'fraction_numerical': 0.024242424242424242, 'mean_word_length': 2.5311942959001783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3131808', 'n_tokens_mistral': 663, 'n_tokens_neox': 635, 'n_words': 261}