From 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 28 Feb 2019 19:57:34 +0100 Subject: Ran standardrb --fix on the whole codebase Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_. --- spec/graphql/gitlab_schema_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'spec/graphql/gitlab_schema_spec.rb') diff --git a/spec/graphql/gitlab_schema_spec.rb b/spec/graphql/gitlab_schema_spec.rb index b9ddb427e85..d6b91a81289 100644 --- a/spec/graphql/gitlab_schema_spec.rb +++ b/spec/graphql/gitlab_schema_spec.rb @@ -1,31 +1,31 @@ -require 'spec_helper' +require "spec_helper" describe GitlabSchema do - it 'uses batch loading' do + it "uses batch loading" do expect(field_instrumenters).to include(BatchLoader::GraphQL) end - it 'enables the preload instrumenter' do + it "enables the preload instrumenter" do expect(field_instrumenters).to include(BatchLoader::GraphQL) end - it 'enables the authorization instrumenter' do + it "enables the authorization instrumenter" do expect(field_instrumenters).to include(instance_of(::Gitlab::Graphql::Authorize::Instrumentation)) end - it 'enables using presenters' do + it "enables using presenters" do expect(field_instrumenters).to include(instance_of(::Gitlab::Graphql::Present::Instrumentation)) end - it 'has the base mutation' do + it "has the base mutation" do expect(described_class.mutation).to eq(::Types::MutationType.to_graphql) end - it 'has the base query' do + it "has the base query" do expect(described_class.query).to eq(::Types::QueryType.to_graphql) end - it 'paginates active record relations using `Gitlab::Graphql::Connections::KeysetConnection`' do + it "paginates active record relations using `Gitlab::Graphql::Connections::KeysetConnection`" do connection = GraphQL::Relay::BaseConnection::CONNECTION_IMPLEMENTATIONS[ActiveRecord::Relation.name] expect(connection).to eq(Gitlab::Graphql::Connections::KeysetConnection) -- cgit v1.2.1