Sha256: 05b2fc1638a2aeef630c89800741a0428c549219da493b0e7573bc2f8b55d216

Contents?: true

Size: 676 Bytes

Versions: 28

Compression:

Stored size: 676 Bytes

Contents

if RUBY_VERSION >= '1.9.3'
  require 'minitest_helper'
  require File.expand_path(File.dirname(__FILE__) + '/apps/grape_simple')

  describe Grape do
    before do
      clear_all_traces
    end

    it "should trace a request to a simple grape stack" do
      @app = GrapeSimple

      r = get "/json_endpoint"

      traces = get_all_traces
      traces.count.must_equal 5

      validate_outer_layers(traces, 'rack')

      traces[1]['Layer'].must_equal "grape"
      traces[2]['Layer'].must_equal "grape"
      traces[2].has_key?('Controller').must_equal true
      traces[2].has_key?('Action').must_equal true
      traces[3]['Label'].must_equal "info"
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
oboe-2.7.9.lynx1 test/frameworks/grape_test.rb
oboe-2.7.8.1-java test/frameworks/grape_test.rb
oboe-2.7.8.1 test/frameworks/grape_test.rb
oboe-2.7.7.1-java test/frameworks/grape_test.rb
oboe-2.7.7.1 test/frameworks/grape_test.rb
oboe-2.7.6.2-java test/frameworks/grape_test.rb
oboe-2.7.6.2 test/frameworks/grape_test.rb
oboe-2.7.5.1-java test/frameworks/grape_test.rb
oboe-2.7.5.1 test/frameworks/grape_test.rb
oboe-2.7.5.wolf3 test/frameworks/grape_test.rb
oboe-2.7.5.wolf3-java test/frameworks/grape_test.rb
oboe-2.7.5.wolf1 test/frameworks/grape_test.rb
oboe-2.7.5.wolf1-java test/frameworks/grape_test.rb
oboe-2.7.4.1-java test/frameworks/grape_test.rb
oboe-2.7.4.1 test/frameworks/grape_test.rb
oboe-2.7.3.1-java test/frameworks/grape_test.rb
oboe-2.7.3.1 test/frameworks/grape_test.rb
oboe-2.7.2.fuchs2 test/frameworks/grape_test.rb
oboe-2.7.2.fuchs1 test/frameworks/grape_test.rb
oboe-2.7.2.2-java test/frameworks/grape_test.rb