mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
13 lines
305 B
Ruby
13 lines
305 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe 'users', type: :request do
|
|
describe 'POST /create' do
|
|
let(:user_params) do
|
|
{ user: FactoryBot.attributes_for(:user) }
|
|
end
|
|
|
|
it 'creates master' do
|
|
expect { post '/users', params: user_params }.to change(User, :count).by(1)
|
|
end
|
|
end
|
|
end
|