File: trace_spec.rb

package info (click to toggle)
ruby-graphql 2.5.19-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,868 kB
  • sloc: ruby: 80,420; ansic: 1,808; yacc: 845; javascript: 480; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true
require "spec_helper"

describe GraphQL::Tracing::Trace do
  it "has all its methods in the development cop" do
    trace_source = File.read("cop/development/trace_methods_cop.rb")
    superable_methods = GraphQL::Tracing::Trace.instance_methods(false).sort
    superable_methods_source = superable_methods.map { |m| "        #{m.inspect},\n" }.join
    assert_includes trace_source, superable_methods_source
  end
end