diff options
Diffstat (limited to 'spec/models/integrations/pushover_spec.rb')
-rw-r--r-- | spec/models/integrations/pushover_spec.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/models/integrations/pushover_spec.rb b/spec/models/integrations/pushover_spec.rb index be8dc5634a0..716a00c5bcf 100644 --- a/spec/models/integrations/pushover_spec.rb +++ b/spec/models/integrations/pushover_spec.rb @@ -5,13 +5,8 @@ require 'spec_helper' RSpec.describe Integrations::Pushover do include StubRequests - describe 'Associations' do - it { is_expected.to belong_to :project } - it { is_expected.to have_one :service_hook } - end - describe 'Validations' do - context 'when service is active' do + context 'when integration is active' do before do subject.active = true end @@ -21,7 +16,7 @@ RSpec.describe Integrations::Pushover do it { is_expected.to validate_presence_of(:priority) } end - context 'when service is inactive' do + context 'when integration is inactive' do before do subject.active = false end @@ -51,7 +46,6 @@ RSpec.describe Integrations::Pushover do allow(pushover).to receive_messages( project: project, project_id: project.id, - service_hook: true, api_key: api_key, user_key: user_key, device: device, |