summaryrefslogtreecommitdiff
path: root/spec/models/integrations/youtrack_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/integrations/youtrack_spec.rb')
-rw-r--r--spec/models/integrations/youtrack_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/integrations/youtrack_spec.rb b/spec/models/integrations/youtrack_spec.rb
index f6a9dd8ef37..618ebcbb76a 100644
--- a/spec/models/integrations/youtrack_spec.rb
+++ b/spec/models/integrations/youtrack_spec.rb
@@ -37,4 +37,10 @@ RSpec.describe Integrations::Youtrack do
expect(described_class.reference_pattern.match('yt-123')[:issue]).to eq('yt-123')
end
end
+
+ describe '#fields' do
+ it 'only returns the project_url and issues_url fields' do
+ expect(subject.fields.pluck(:name)).to eq(%w[project_url issues_url])
+ end
+ end
end