<commit_before>require 'sidekiq/testing'
require 'poltergrind/worker'

Sidekiq::Testing.inline!

module Poltergrind
  describe Worker do
    class ExampleTest
      include Poltergrind::Worker

      def self.perform
        10.times { perform_async }
      end

      def perform
        time('example-test') do
          visit 'http://google.com/'
          expect(page).to have_content 'Google'
          puts current_url
        end
      end<commit_msg>Nicer statsd key and better assertion in integration spec.<commit_after>require 'sidekiq/testing'
require 'poltergrind/worker'

Sidekiq::Testing.inline!

module Poltergrind
  describe Worker do
    class ExampleTest
      include Poltergrind::Worker

      def self.perform
        10.times { perform_async }
      end

      def perform
        time('google.homepage') do
          visit 'http://google.com/'
          puts current_url
          expect(page).to have_css %Q|input[value="I'm Feeling Lucky"]|
        end
      end
{'fraction_non_alphanumeric': 0.08097165991902834, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 2.4340277777777777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5423743', 'n_tokens_mistral': 292, 'n_tokens_neox': 284, 'n_words': 73}