<commit_before>Feature: Configure the home directory to be used with aruba

  As a developer
  I want to configure the home directory
  In order to have a better isolation of tests

  Be careful to set the HOME-variable aka `config.home_directory` to something
  else than `<project_root>/tmp/aruba`. This is a dance with the devil and
  violates the isolation of your test suite. Thus will be not supported from
  aruba as of 1.0.0.

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

  Scenario: Default value
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      puts %(The default value is "#{config.home_directory}")
    end
    """
    When I successfully run `cucumber`
    Then the output should contain:
    """
    The default value is "/home/
    """

  Scenario: Set to current working directory
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      # use current working directory
      config.home_directory = '.'
    end

    Aruba.configure do |config|
      puts %(The default value is "#{config.home_directory}")
    end
    """
    Then I successfully run `cucumber`
    Then the output should contain:
    """
    The default value is "."
    """

  Scenario: Set to aruba's working directory
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      # Use aruba working directory
      config.home_directory = File.join(config.root_directory, config.working_directory)
    end

    Aruba.configure do |config|
      puts %(The default value is "#{config.home_directory}")
    end
    """
    Then I successfully run `cucumber`
    Then the output should contain:
    """
    The default value is "/home/
    """

  Scenario: Set to some other path (deprecated)
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      # use current working directory
      config.home_directory = '/tmp/home'<commit_msg>Match home_directory values on OSX<commit_after>Feature: Configure the home directory to be used with aruba

  As a developer
  I want to configure the home directory
  In order to have a better isolation of tests

  Be careful to set the HOME-variable aka `config.home_directory` to something
  else than `<project_root>/tmp/aruba`. This is a dance with the devil and
  violates the isolation of your test suite. Thus will be not supported from
  aruba as of 1.0.0.

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

  Scenario: Default value
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      puts %(The default value is "#{config.home_directory}")
    end
    """
    When I successfully run `cucumber`
    Then the output should match:
    """
    The default value is "/.*/tmp/aruba"
    """

  Scenario: Set to current working directory
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      # use current working directory
      config.home_directory = '.'
    end

    Aruba.configure do |config|
      puts %(The default value is "#{config.home_directory}")
    end
    """
    Then I successfully run `cucumber`
    Then the output should contain:
    """
    The default value is "."
    """

  Scenario: Set to aruba's working directory
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      # Use aruba working directory
      config.home_directory = File.join(config.root_directory, config.working_directory)
    end

    Aruba.configure do |config|
      puts %(The default value is "#{config.home_directory}")
    end
    """
    Then I successfully run `cucumber`
    Then the output should match:
    """
    The default value is "/.*/tmp/aruba"
    """

  Scenario: Set to some other path (deprecated)
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      # use current working directory
      config.home_directory = '/tmp/home'
{'fraction_non_alphanumeric': 0.08768971332209106, 'fraction_numerical': 0.001445434834979523, 'mean_word_length': 2.905926622765757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '129356', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1183, 'n_words': 457}