diff --git a/spec/graphql_spec.rb b/spec/graphql_spec.rb new file mode 100644 index 0000000000..23b29f04d5 --- /dev/null +++ b/spec/graphql_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true +require "spec_helper" +require "open3" + +describe GraphQL do + it "loads without warnings" do + stderr_and_stdout, _status = Open3.capture2e(%|ruby -Ilib -e "require 'bundler/inline'; gemfile { gem('graphql', path: './') }; GraphQL.eager_load!"|) + puts stderr_and_stdout + assert_equal "", stderr_and_stdout + end +end