feat: Business hours

Data models and APIs for business hours

ref: #234
This commit is contained in:
Adam Zysko
2020-10-31 19:44:33 +01:00
committed by GitHub
parent 3d64ba49fc
commit 65ed4c78a4
23 changed files with 329 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'
require Rails.root.join 'spec/models/concerns/out_of_offisable_spec.rb'
RSpec.describe Inbox do
describe 'validations' do
@@ -33,6 +34,10 @@ RSpec.describe Inbox do
it { is_expected.to have_many(:hooks) }
end
describe 'concerns' do
it_behaves_like 'out_of_offisable'
end
describe '#add_member' do
let(:inbox) { FactoryBot.create(:inbox) }
let(:user) { FactoryBot.create(:user) }