Sha256: 6812d39785f0342f615eff62d3073ab6955fb66cda4d247609f7139a62a7b050

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 KB

Contents

Feature: Install plugin

  Background:
    Given a directory named ".vimmer"
    And a bundle path set for my system
    And I have no plugins installed

  Scenario: Install from Github
    When I successfully run "vimmer install 'https://github.com/tpope/vim-awesomemofo.git'"
    Then a plugin named "vim-awesomemofo" should be installed
    And the stdout should contain "vim-awesomemofo has been installed"

  Scenario: Install from Github with bad URL
    When I run "vimmer install 'https://github.com/tpope/not-found.git'"
    Then I should still not have any plugins installed
    And it should fail with:
    """
    The plugin not-found could not be found
    """

  Scenario: Install from Github with a non-Github URL
    When I run "vimmer install 'http://example.com/bad'"
    Then I should still not have any plugins installed
    And it should fail with:
    """
    The URL http://example.com/bad is invalid.
    """

  Scenario Outline: Install from Github with a front-end Github URL
    When I successfully run "vimmer install '<URL>'"
    Then a plugin named "vim-awesomemofo" should be installed
    And the stdout should contain "vim-awesomemofo has been installed"

    Examples:
      | URL                                      |
      | http://github.com/tpope/vim-awesomemofo  |
      | https://github.com/tpope/vim-awesomemofo |

  Scenario: Accept URLs with a "."
    When I run "vimmer install 'http://github.com/tpope/awesomemofo.vim'"
    Then it should pass with:
    """
    awesomemofo.vim has been installed
    """

  @wip
  Scenario: Install from vim.org
    When I successfully run "vimmer install http://www.vim.org/scripts/script.php?script_id=2975"
    Then a plugin named "fugitive.vim" should be installed
    And the stdout should contain "fugitive.vim has been installed"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vimmer-0.2.0 features/install.feature