1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/spec/models/project_spec.rb
2015-05-05 03:10:25 +02:00

31 lines
623 B
Ruby

require 'rails_helper'
RSpec.describe Project, type: :model do
describe 'create' do
it 'is success with author, name and description'
it 'is invalid without author'
it 'is invalid without name'
it 'is invalid without description'
it 'should auto generate slug by name'
end
it 'save as draft by default'
it 'should can published'
it 'should have a published time after published'
it 'can only add one project main image'
it 'can have many project caos'
it 'can have many machines'
it 'can have many components'
it 'can have many project steps'
it 'can add a licence'
end