Sha256: 85f22be210d2ba6130d394672a165cd5640c812dda2b2726bb9413cd3379c1af

Contents?: true

Size: 538 Bytes

Versions: 9

Compression:

Stored size: 538 Bytes

Contents

require 'test_helper'
require 'harness/integration/active_model_serializers'

class ActiveModelSerializerIntegration < IntegrationTest
  def test_serializable_hash_is_logged
    instrument "serializable_hash"

    assert_gauge_logged "serializable_hash.serializer"
  end

  def test_serializing_associations_is_logged
    instrument "associations"

    assert_gauge_logged "associations.serializer"
  end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
harness-0.9.1 test/integration/integrations/active_model_serializers_test.rb
harness-0.9.0 test/integration/integrations/active_model_serializers_test.rb
harness-0.8.1 test/integration/integrations/active_model_serializers_test.rb
harness-0.8.0 test/integration/integrations/active_model_serializers_test.rb
harness-0.7.0 test/integration/integrations/active_model_serializers_test.rb
harness-0.6.0 test/integration/integrations/active_model_serializers_test.rb
harness-0.5.0 test/integration/integrations/active_model_serializers_test.rb
harness-0.4.0 test/integration/integrations/active_model_serializers_test.rb
harness-0.3.0 test/integration/integrations/active_model_serializers_test.rb