Sha256: 0ebdb619eefcdd3438a50454c4231f4500a140e7b824bf6779fa7c1a29e239a6

Contents?: true

Size: 736 Bytes

Versions: 3

Compression:

Stored size: 736 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic"s license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require "grape"
require "newrelic_rpm"
require 'multiverse_helpers'
require './grape_test_api'

require File.join(File.dirname(__FILE__), "..", "..", "..", "agent_helper")

class UnsupportedGrapeTest < Minitest::Test
  include Rack::Test::Methods
  include MultiverseHelpers

  if ::Grape::VERSION == '0.1.5'
    def app
      GrapeTestApi
    end

    def test_unsupported_version
      get '/grape_ape'
      get '/grape_ape/1'
      post '/grape_ape', {}
      put '/grape_ape/1', {}
      delete '/grape_ape/1'

      assert_no_metrics_match(/grape_ape/)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newrelic_rpm-3.10.0.279 test/multiverse/suites/grape/unsupported_version_test.rb
newrelic_rpm-3.9.9.275 test/multiverse/suites/grape/unsupported_version_test.rb
newrelic_rpm-3.9.8.273 test/multiverse/suites/grape/unsupported_version_test.rb