Sha256: 71f02763ef892a194de14d26509254dd39a5a2b63cc90e56916d359d12000ed3

Contents?: true

Size: 1.95 KB

Versions: 11

Compression:

Stored size: 1.95 KB

Contents

Feature: Adding the --with-mohawk flag

  Scenario: Adding the childprocess and mohawk gems to Gemfile
    When I run `testgen project sample --with-mohawk`
    Then a file named "sample/Gemfile" should exist
    And the file "sample/Gemfile" should contain "gem 'childprocess'"
    And the file "sample/Gemfile" should contain "gem 'mohawk'"
    And the file "sample/Gemfile" should contain "gem 'rake'"

  Scenario: Adding mohawk to env.rb
    When I run `testgen project sample --with-mohawk`
    Then a file named "sample/features/support/env.rb" should exist
    And the file "sample/features/support/env.rb" should contain "require 'childprocess'"
    And the file "sample/features/support/env.rb" should contain "require 'mohawk'"
    And the file "sample/features/support/env.rb" should contain "World(Mohawk::Navigation)"

  Scenario: Creating the Driver and hooks
    When I run `testgen project sample --with-mohawk`
    Then a file named "sample/features/support/env.rb" should exist
    And the file "sample/features/support/env.rb" should contain "@process = ChildProcess.build(PATH_TO_EXECUTABLE)"
    And the file "sample/features/support/env.rb" should contain "@process.start"
    And the file "sample/features/support/env.rb" should contain "RAutomation::WaitHelper.wait_until {RAutomation::Window.new(:pid => @process.pid).present?"
    And the file "sample/features/support/env.rb" should contain "@process.stop"


  Scenario: Should not create the hooks file
    When I run `testgen project sample --with-mohawk`
    Then a file named "sample/features/support/hooks.rb" should not exist

  Scenario: Creating the screens directory under support
    When I run `testgen project sample --with-mohawk`
    Then a directory named "sample/features/support/screens" should exist

  Scenario: Creating the screens directory under lib when using --wth-lib
    When I run `testgen project sample --with-mohawk --with-lib`
    Then a directory named "sample/lib/screens" should exist

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
testgen-0.8.2 features/with_mojawk_option.feature
testgen-0.8.1 features/with_mojawk_option.feature
cwtestgen-0.1.6 features/with_mojawk_option.feature
cwtestgen-0.1.5 features/with_mojawk_option.feature
cwtestgen-0.1.4 features/with_mojawk_option.feature
cwtestgen-0.1.3 features/with_mojawk_option.feature
cwtestgen-0.1.2 features/with_mojawk_option.feature
cwtestgen-0.1.1 features/with_mojawk_option.feature
cwtestgen-0.1 features/with_mojawk_option.feature
testgen-0.8 features/with_mojawk_option.feature
testgen-0.7 features/with_mojawk_option.feature