Feature: Slack integration (#783)
- Integrations architecture - Slack integration
This commit is contained in:
@@ -29,6 +29,8 @@ RSpec.describe Inbox do
|
||||
it { is_expected.to have_many(:webhooks).dependent(:destroy) }
|
||||
|
||||
it { is_expected.to have_many(:events) }
|
||||
|
||||
it { is_expected.to have_many(:hooks) }
|
||||
end
|
||||
|
||||
describe '#add_member' do
|
||||
|
||||
12
spec/models/integrations/hook_spec.rb
Normal file
12
spec/models/integrations/hook_spec.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Integrations::Hook, type: :model do
|
||||
context 'with validations' do
|
||||
it { is_expected.to validate_presence_of(:app_id) }
|
||||
it { is_expected.to validate_presence_of(:account_id) }
|
||||
end
|
||||
|
||||
describe 'associations' do
|
||||
it { is_expected.to belong_to(:account) }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user