add wallet address to user

This commit is contained in:
João Geonizeli
2021-08-18 15:58:04 -03:00
parent 00337665bd
commit d21bd33436
14 changed files with 125 additions and 86 deletions

View File

@@ -12,6 +12,7 @@
# remember_created_at :datetime
# reset_password_sent_at :datetime
# reset_password_token :string
# wallet_address :string
# created_at :datetime not null
# updated_at :datetime not null
#

View File

@@ -6,9 +6,9 @@ RSpec.describe(Types::UserType) do
describe "arguments" do
it { is_expected.to(have_a_field(:id).of_type("ID!")) }
it { is_expected.to(have_a_field(:email).of_type("String!")) }
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!")) }
it { is_expected.to(have_a_field(:wallet_address).of_type("String")) }
end
end

View File

@@ -12,6 +12,7 @@
# remember_created_at :datetime
# reset_password_sent_at :datetime
# reset_password_token :string
# wallet_address :string
# created_at :datetime not null
# updated_at :datetime not null
#

View File

@@ -2,9 +2,9 @@
require "rails_helper"
RSpec.describe("Homes", type: :request) do
describe "GET /index" do
describe "GET /" do
it "returns http success" do
get "/home/index"
get "/"
expect(response).to(have_http_status(:success))
end
end