diff options
Diffstat (limited to 'spec/models/integrations/campfire_spec.rb')
-rw-r--r-- | spec/models/integrations/campfire_spec.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/models/integrations/campfire_spec.rb b/spec/models/integrations/campfire_spec.rb index d68f8e0bd4e..0044e6fae21 100644 --- a/spec/models/integrations/campfire_spec.rb +++ b/spec/models/integrations/campfire_spec.rb @@ -5,13 +5,8 @@ require 'spec_helper' RSpec.describe Integrations::Campfire 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 @@ -19,7 +14,7 @@ RSpec.describe Integrations::Campfire do it { is_expected.to validate_presence_of(:token) } end - context 'when service is inactive' do + context 'when integration is inactive' do before do subject.active = false end @@ -37,7 +32,6 @@ RSpec.describe Integrations::Campfire do allow(@campfire_integration).to receive_messages( project_id: project.id, project: project, - service_hook: true, token: 'verySecret', subdomain: 'project-name', room: 'test-room' |