Sha256: c9490a83bce3e69b85159fb6fae85d663199acd42472a5ab7212958541505a0c

Contents?: true

Size: 670 Bytes

Versions: 8

Compression:

Stored size: 670 Bytes

Contents

require 'test_helper'

class ClientSendsMetricsTest < AcceptanceTestCase

  def test_client_sends_metrics
    test_app      = TestApp.new
    test_endpoint = TestEndpoint.new(port: 8080)
    test_user     = TestUser.new

    test_endpoint.listen
    test_app.boot(chillout_port: 8080)
    if ENV['STRATEGY'] != 'active_job'
      assert test_endpoint.has_received_information_about_startup
    end
    test_user.create_entity('Myrmecophagidae')
    assert creation = test_endpoint.has_one_creation_for_entity_resource
    assert_equal "Entity", creation["series"]
    assert_equal 1, creation["values"]["creations"]
  ensure
    test_app.shutdown if test_app
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
chillout-0.8.9 test/acceptance/client_sends_metrics_test.rb
chillout-0.8.5.1 test/acceptance/client_sends_metrics_test.rb
chillout-0.8.8 test/acceptance/client_sends_metrics_test.rb
chillout-0.8.7 test/acceptance/client_sends_metrics_test.rb
chillout-0.8.6 test/acceptance/client_sends_metrics_test.rb
chillout-0.8.5 test/acceptance/client_sends_metrics_test.rb
chillout-0.8.4 test/acceptance/client_sends_metrics_test.rb
chillout-0.8.3 test/acceptance/client_sends_metrics_test.rb