Sha256: a98968619c404dc43ec4228e6a000e734f9f732cb7c41b816e369277343c1b5a

Contents?: true

Size: 1.98 KB

Versions: 29

Compression:

Stored size: 1.98 KB

Contents

Feature: Initialize project with aruba

  To add `aruba` to your project you can use the `aruba init`-command.

  Background:
    Given I use the fixture "empty-app"

  Scenario: Create files for RSpec
    When I successfully run `aruba init --test-framework rspec`
    Then the following files should exist:
      | spec/spec_helper.rb |
    And the file "spec/support/aruba.rb" should contain:
    """
    require 'aruba/rspec'
    """
    And the file "Gemfile" should contain:
    """
    gem 'aruba'
    """
    When I successfully run `rspec`
    Then the output should contain:
    """
    0 examples, 0 failures
    """

  Scenario: Create files for Cucumber
    When I successfully run `aruba init --test-framework cucumber`
    Then the file "features/support/aruba.rb" should contain:
    """
    require 'aruba/cucumber'
    """
    And the file "Gemfile" should contain:
    """
    gem 'aruba'
    """
    When I successfully run `cucumber`
    Then the output should contain:
    """
    0 scenarios
    0 steps
    """

  Scenario: Create files for Cucumber (Default)
    When I successfully run `aruba init`
    Then the file "features/support/aruba.rb" should contain:
    """
    require 'aruba/cucumber'
    """
    And the file "Gemfile" should contain:
    """
    gem 'aruba'
    """
    When I successfully run `cucumber`
    Then the output should contain:
    """
    0 scenarios
    0 steps
    """

  Scenario: Create files for Minitest
    When I successfully run `aruba init --test-framework minitest`
    Then the following files should exist:
      | test/test_helper.rb |
    And the file "Gemfile" should contain:
    """
    gem 'aruba'
    """
    When I successfully run `ruby -Ilib:test test/use_aruba_with_minitest.rb`
    Then the output should contain:
    """
    0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
    """

  Scenario: Unknown Test Framework
    When I run `aruba init --test-framework unknown`
    Then the output should contain:
    """
    got unknown
    """

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
aruba-0.14.14 features/06_use_aruba_cli/initialize_project_with_aruba.feature
aruba-0.14.13 features/06_use_aruba_cli/initialize_project_with_aruba.feature
aruba-0.14.12 features/06_use_aruba_cli/initialize_project_with_aruba.feature
aruba-0.14.11 features/06_use_aruba_cli/initialize_project_with_aruba.feature
aruba-0.14.10 features/06_use_aruba_cli/initialize_project_with_aruba.feature
aruba-0.14.9 features/cli/init.feature
aruba-0.14.8 features/cli/init.feature
aruba-0.14.7 features/cli/init.feature
aruba-0.14.6 features/cli/init.feature
aruba-0.14.5 features/cli/init.feature
aruba-0.14.4 features/cli/init.feature
aruba-0.14.3 features/cli/init.feature
aruba-win-fix-0.14.2 features/cli/init.feature
aruba-0.14.2 features/cli/init.feature
aruba-0.14.1 features/cli/init.feature
aruba-0.14.0 features/cli/init.feature
aruba-0.13.0 features/cli/init.feature
aruba-0.12.0 features/cli/init.feature
aruba-0.11.2 features/cli/init.feature
aruba-0.11.1 features/cli/init.feature