Sha256: c6c652a30fc0a42175699f5681a8cc32fe3845932c4bc1a4bccaae087de3a911

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

Feature: Calling genomer plugins in a genomer project
  In order to use third-party genomer plugins
  A user can specify genomer plugins in a Gemfile
  And call these plugins on the command line

  @disable-bundler
  Scenario: Calling a genomer plugin with no command
    Given I run the genomer command with the arguments "init project"
      And I cd to "project"
      And I overwrite "Gemfile" with:
      """
      gem 'genomer',               :path => '../../../'
      gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
      """
     When I run the genomer command with the arguments "simple"
     Then the exit status should be 0
      And the output should contain:
     """
     Plugin "simple" called
     """

  @disable-bundler
  Scenario: Calling a genomer plugin with a command
    Given I run the genomer command with the arguments "init project"
      And I cd to "project"
      And I overwrite "Gemfile" with:
      """
      gem 'genomer',               :path => '../../../'
      gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
      """
     When I run the genomer command with the arguments "simple echo some words"
     Then the exit status should be 0
      And the output should contain:
     """
     Echo: some words
     """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
genomer-0.1.0 features/cli/plugins.feature