Sha256: d26fd2c9078b789d43bc9e40bc17db99ce895a2462e08a5d2772922aec757559

Contents?: true

Size: 630 Bytes

Versions: 4

Compression:

Stored size: 630 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 './grape_test_api'

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

4 entries across 4 versions & 1 rubygems

Version Path
newrelic_rpm-4.1.0.333 test/multiverse/suites/grape/unsupported_version_test.rb
newrelic_rpm-4.0.0.332 test/multiverse/suites/grape/unsupported_version_test.rb
newrelic_rpm-3.18.1.330 test/multiverse/suites/grape/unsupported_version_test.rb
newrelic_rpm-3.18.0.329 test/multiverse/suites/grape/unsupported_version_test.rb