debian-mirror-gitlab/spec/requests/api/graphql/mutations/boards/create_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
654 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe Mutations::Boards::Create, feature_category: :team_planning do
2021-01-03 14:25:43 +05:30
let_it_be(:parent) { create(:project) }
2022-06-21 17:19:12 +05:30
let_it_be(:current_user, reload: true) { create(:user) }
let(:name) { 'board name' }
let(:mutation) { graphql_mutation(:create_board, params) }
subject { post_graphql_mutation(mutation, current_user: current_user) }
def mutation_response
graphql_mutation_response(:create_board)
end
2021-09-30 23:02:18 +05:30
2021-01-03 14:25:43 +05:30
let(:project_path) { parent.full_path }
let(:params) do
{
project_path: project_path,
name: name
}
end
it_behaves_like 'boards create mutation'
end