Sha256: 21692efe1dd6e6cff6e17623adae2be8461f8096104a4d489fb0113b23ccf0a5

Contents?: true

Size: 544 Bytes

Versions: 6

Compression:

Stored size: 544 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')

module ESP::Integration
  class MetadataTest < ESP::Integration::TestCase
    context ESP::Metadata do
      context 'live calls' do
        context '.for_alert' do
          should 'return metadata for alert id' do
            report = ESP::Report.all.detect { |r| r.status == 'complete' }
            metadata = ESP::Metadata.for_alert(report.alerts.last.id)

            assert_equal ESP::Metadata, metadata.class
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
esp_sdk-2.8.0 test/esp/integration/metadata_integration_test.rb
esp_sdk-2.7.0 test/esp/integration/metadata_integration_test.rb
esp_sdk-2.6.0 test/esp/integration/metadata_integration_test.rb
esp_sdk-2.5.0 test/esp/integration/metadata_integration_test.rb
esp_sdk-2.4.0 test/esp/integration/metadata_integration_test.rb
esp_sdk-2.3.0 test/esp/integration/metadata_integration_test.rb