add create sell and buy crypto order mutations

This commit is contained in:
João Geonizeli
2021-08-15 01:59:59 -03:00
parent 4b1341677f
commit a3d32ee13a
25 changed files with 688 additions and 15 deletions

View File

@@ -0,0 +1,12 @@
# frozen_string_literal: true
require "rails_helper"
describe Inputs::CreateBuyCryptoOrderAttributesInput do
subject { described_class }
describe "fields" do
it { is_expected.to(accept_argument("currency_id").of_type("ID!")) }
it { is_expected.to(accept_argument("amount_cents").of_type("Int!")) }
end
end

View File

@@ -0,0 +1,12 @@
# frozen_string_literal: true
require "rails_helper"
describe Inputs::CreateSellCryptoOrderAttributesInput do
subject { described_class }
describe "fields" do
it { is_expected.to(accept_argument("currency_id").of_type("ID!")) }
it { is_expected.to(accept_argument("amount").of_type("String!")) }
end
end