1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-07 01:54:16 +01:00
fab-manager/spec/models/reservation_spec.rb
2016-03-23 18:39:41 +01:00

29 lines
656 B
Ruby

require 'rails_helper'
RSpec.describe Reservation, type: :model do
describe 'create' do
it 'is success with user, slots and reservable'
it 'is invalid if reservable isnt in [Training, Machine, Event]'
it 'is success with a subscription'
context 'stripe' do
it 'should payment success'
it 'is invalid if payment info invalid'
end
context 'satori' do
it 'should success'
it 'is invalid if payment info invalid'
end
end
it 'should update user credit after creation'
it 'should create a invoice'
it 'should can set a nb reserve places'
it 'should can set a nb reserve reduced places'
end