mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-07 01:54:16 +01:00
27 lines
525 B
Ruby
27 lines
525 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe Subscription, type: :model do
|
|
describe 'create' do
|
|
it 'is success with user, plan'
|
|
|
|
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 reset user credit after creation'
|
|
|
|
it 'should set a expired at after creation'
|
|
|
|
it 'should create a invoice'
|
|
|
|
end
|