<commit_before>Feature: basic Rake integration
  In order to promote reuse of development tools
  RightDevelop should expose some of its operations via Rake

  Background:
    Given a Ruby application
    And a Gemfile
    And a gem dependency on 'rake ~> 0.9'

  Scenario: list CI tasks
    Given the Rakefile contains a RightDevelop::CI::RakeTask
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'ci:cucumber'
    And the output should contain 'ci:spec'

  Scenario: override CI namespace
    Given the Rakefile contains:
    """
    RightDevelop::CI::RakeTask.new do |task|
      task.ci_namespace = :funkalicious
    end
    """
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'funkalicious:cucumber'
    And the output should contain 'funkalicious:spec'

  Scenario: list S3 tasks
    Given the Rakefile contains a RightDevelop::S3::RakeTask
    When I install the bundle
    And I rake '-T'
    Then the output should contain 's3:list_files'

  Scenario: override S3 namespace
    Given the Rakefile contains:
    """
    RightDevelop::S3::RakeTask.new do |task|
      task.s3_namespace = :funkalicious
    end
    """
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'funkalicious:list_files'

  Scenario: list Git tasks
    Given the Rakefile contains a RightDevelop::Git::RakeTask
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'git:setup'
    And the output should contain 'git:branch[revision,base_dir]'
    And the output should contain 'git:check[revision,base_dir]'

  Scenario: override Git namespace
    Given the Rakefile contains:
    """
    RightDevelop::Git::RakeTask.new do |task|
      task.git_namespace = :funkalicious
    end
    """
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'funkalicious:setup'<commit_msg>acu134044 fix a broken feature<commit_after>Feature: basic Rake integration
  In order to promote reuse of development tools
  RightDevelop should expose some of its operations via Rake

  Background:
    Given a Ruby application
    And a Gemfile
    And a gem dependency on 'rake ~> 0.9'

  Scenario: list CI tasks
    Given the Rakefile contains a RightDevelop::CI::RakeTask
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'ci:cucumber'
    And the output should contain 'ci:spec'

  Scenario: override CI namespace
    Given the Rakefile contains:
    """
    RightDevelop::CI::RakeTask.new do |task|
      task.ci_namespace = :funkalicious
    end
    """
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'funkalicious:cucumber'
    And the output should contain 'funkalicious:spec'

  Scenario: list S3 tasks
    Given the Rakefile contains a RightDevelop::S3::RakeTask
    When I install the bundle
    And I rake '-T'
    Then the output should contain 's3:list_files'

  Scenario: override S3 namespace
    Given the Rakefile contains:
    """
    RightDevelop::S3::RakeTask.new do |task|
      task.s3_namespace = :funkalicious
    end
    """
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'funkalicious:list_files'

  Scenario: list Git tasks
    Given the Rakefile contains a RightDevelop::Git::RakeTask
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'git:setup'
    And the output should contain 'git:checkout[revision,base_dir]'
    And the output should contain 'git:verify[revision,base_dir]'

  Scenario: override Git namespace
    Given the Rakefile contains:
    """
    RightDevelop::Git::RakeTask.new do |task|
      task.git_namespace = :funkalicious
    end
    """
    When I install the bundle
    And I rake '-T'
    Then the output should contain 'funkalicious:setup'
{'fraction_non_alphanumeric': 0.0687693898655636, 'fraction_numerical': 0.005687693898655636, 'mean_word_length': 3.1917659804983747, 'pattern_counts': {'":': 0, '<': 3, '<?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': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6254140', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1123, 'n_words': 447}