<commit_before>require "spec_helper"

feature "testing with teaspoon in the console", aruba: true do

  scenario "gives me the expected results" do
    run_simple("bundle exec teaspoon -r ../../spec/teaspoon_env.rb --suite=default app/assets/javascripts/integration/integration_spec.coffee", false)

    expected = <<-OUTPUT.strip_heredoc
    Teaspoon running default suite at http://127.0.0.1:31337/teaspoon/default
    TypeError: undefined is not a constructor (evaluating 'foo()')
      # http://127.0.0.1:31337/relative/assets/integration/spec_helper.js:12

    testing console output
    ..FF.*.

    Pending:
      Integration tests pending is allowed
        # Not yet implemented

    Failures:

      1) Integration tests allows failing specs
         Failure/Error: Expected true to be false.

      2) Integration tests allows erroring specs<commit_msg>make js exceptions match phantomjs 1.9 style.<commit_after>require "spec_helper"

feature "testing with teaspoon in the console", aruba: true do

  scenario "gives me the expected results" do
    run_simple("bundle exec teaspoon -r ../../spec/teaspoon_env.rb --suite=default app/assets/javascripts/integration/integration_spec.coffee", false)

    expected = <<-OUTPUT.strip_heredoc
    Teaspoon running default suite at http://127.0.0.1:31337/teaspoon/default
    TypeError: 'undefined' is not a function (evaluating 'foo()')
      # http://127.0.0.1:31337/relative/assets/integration/spec_helper.js:12
      # http://127.0.0.1:31337/relative/assets/integration/spec_helper.js:14

    testing console output
    ..FF.*.

    Pending:
      Integration tests pending is allowed
        # Not yet implemented

    Failures:

      1) Integration tests allows failing specs
         Failure/Error: Expected true to be false.

      2) Integration tests allows erroring specs
{'fraction_non_alphanumeric': 0.09803921568627451, 'fraction_numerical': 0.03649237472766884, 'mean_word_length': 3.262180974477958, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '4654409', 'n_tokens_mistral': 587, 'n_tokens_neox': 516, 'n_words': 158}