Sha256: 2985e82dc323b1e1ba3c3c951ece1af1f73f131180fb1ec9179ba3b5cf08e836

Contents?: true

Size: 1.06 KB

Versions: 29

Compression:

Stored size: 1.06 KB

Contents

require 'test_helper'

class ActionControllerIntegration < IntegrationTest
  def test_logs_write_fragment
    instrument "write_fragment"

    assert_gauge_logged "write_fragment.action_controller"
  end

  def test_logs_read_fragment
    instrument "read_fragment"

    assert_gauge_logged "read_fragment.action_controller"
  end

  def test_logs_expire_fragment
    instrument "expire_fragment"

    assert_gauge_logged "expire_fragment.action_controller"
  end

  def test_logs_write_page
    instrument "write_page"

    assert_gauge_logged "write_page.action_controller"
  end

  def test_logs_expire_page
    instrument "expire_page"

    assert_gauge_logged "expire_page.action_controller"
  end

  def test_logs_process_action
    instrument "process_action"

    assert_gauge_logged "process_action.action_controller"
  end

  def test_logs_send_file
    instrument "send_file"

    assert_gauge_logged "send_file.action_controller"
  end

  def instrument(event)
    ActiveSupport::Notifications.instrument "#{event}.action_controller" do |*args|
      # nada
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
harness-0.9.1 test/integration/integrations/action_controller_test.rb
harness-0.9.0 test/integration/integrations/action_controller_test.rb
harness-0.8.1 test/integration/integrations/action_controller_test.rb
harness-0.8.0 test/integration/integrations/action_controller_test.rb
harness-0.7.0 test/integration/integrations/action_controller_test.rb
harness-0.6.0 test/integration/integrations/action_controller_test.rb
harness-0.5.0 test/integration/integrations/action_controller_test.rb
harness-0.4.0 test/integration/integrations/action_controller_test.rb
harness-0.3.0 test/integration/integrations/action_controller_test.rb
harness-0.2.16 test/integration/integrations/action_controller_test.rb
harness-0.2.15 test/integration/integrations/action_controller_test.rb
harness-0.2.14 test/integration/integrations/action_controller_test.rb
harness-0.2.13 test/integration/integrations/action_controller_test.rb
harness-0.2.12 test/integration/integrations/action_controller_test.rb
harness-0.2.11 test/integration/integrations/action_controller_test.rb
harness-0.2.10 test/integration/integrations/action_controller_test.rb
harness-0.2.9 test/integration/integrations/action_controller_test.rb
harness-0.2.8 test/integration/integrations/action_controller_test.rb
harness-0.2.7 test/integration/integrations/action_controller_test.rb
harness-0.2.6 test/integration/integrations/action_controller_test.rb