mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-26 15:52:20 +01:00
22 lines
485 B
Ruby
22 lines
485 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe Machine, type: :model do
|
|
|
|
describe 'create' do
|
|
it 'is success with name, image, description and spec'
|
|
it 'is invalid without name'
|
|
it 'is invalid without image'
|
|
it 'is invalid without description'
|
|
it 'is invalid without spec'
|
|
it 'should auto generate slug by name'
|
|
end
|
|
|
|
it 'can have many machine files'
|
|
|
|
it 'can have many projects'
|
|
|
|
it 'can have many trainings'
|
|
|
|
it 'should return an amount by user group'
|
|
end
|