dawarich/spec/requests/devise/registrations_spec.rb

17 lines
389 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'users', type: :request do
# Skip this because user registration is disabled
xdescribe 'POST /create' do
2022-10-13 06:00:39 -04:00
let(:user_params) do
{ user: FactoryBot.attributes_for(:user) }
end
2022-10-13 06:00:39 -04:00
it 'creates master' do
expect { post '/users', params: user_params }.to change(User, :count).by(1)
end
end
end