Skip to content

Commit

Permalink
Add regression test for no warnings on load
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Jan 3, 2025
1 parent 896ec73 commit acef47a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/graphql_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit acef47a

Please sign in to comment.