diff options
Diffstat (limited to 'spec/models/integrations/external_wiki_spec.rb')
-rw-r--r-- | spec/models/integrations/external_wiki_spec.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/models/integrations/external_wiki_spec.rb b/spec/models/integrations/external_wiki_spec.rb index 8c20b810301..e4d6a1c7c84 100644 --- a/spec/models/integrations/external_wiki_spec.rb +++ b/spec/models/integrations/external_wiki_spec.rb @@ -3,22 +3,17 @@ require 'spec_helper' RSpec.describe Integrations::ExternalWiki do - 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 it { is_expected.to validate_presence_of(:external_wiki_url) } - it_behaves_like 'issue tracker service URL attribute', :external_wiki_url + it_behaves_like 'issue tracker integration URL attribute', :external_wiki_url end - context 'when service is inactive' do + context 'when integration is inactive' do before do subject.active = false end |