add currentUser query

This commit is contained in:
João Geonizeli
2021-08-07 12:46:39 -03:00
parent 79047938d1
commit 94e9aa08b4
6 changed files with 43 additions and 15 deletions

View File

@@ -0,0 +1,14 @@
# frozen_string_literal: true
require "rails_helper"
RSpec.describe(Types::UserType) do
subject { described_class }
describe "arguments" do
it { is_expected.to(have_a_field(:id).of_type("ID!")) }
it { is_expected.to(have_a_field(:first_name).of_type("String!")) }
it { is_expected.to(have_a_field(:last_name).of_type("String!")) }
it { is_expected.to(have_a_field(:full_name).of_type("String!")) }
it { is_expected.to(have_a_field(:email).of_type("String!")) }
end
end