add currentUser query
This commit is contained in:
14
spec/graphql/types/user_type_spec.rb
Normal file
14
spec/graphql/types/user_type_spec.rb
Normal 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
|
||||
Reference in New Issue
Block a user