Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 366 Bytes

configuration.md

File metadata and controls

12 lines (8 loc) · 366 Bytes

RSpec::GraphQLResponse Configuration

To get things rolling, add a configuration block to your spec_helper.rb (or other file that gets included in specs, as desired). Within this block, you'll need to provide the GraphQL Schema to use for query execution.

RSpec::GraphQLResponse.configure |config| do

  config.graphql_schema = MyGraphQLSchema

end