diff options
author | Jarka Košanová <jarka@gitlab.com> | 2019-06-26 16:03:57 +0200 |
---|---|---|
committer | Jarka Košanová <jarka@gitlab.com> | 2019-07-02 15:00:27 +0200 |
commit | ddbbf453c76144ac60c67e783424faf843c8efa1 (patch) | |
tree | 028cd360ebcae9582ac05a4b13ba2005621c534a /spec/models/service_spec.rb | |
parent | 0e8b76e1918a7ca441e9eb98819f10da24e0588a (diff) | |
download | gitlab-ce-ddbbf453c76144ac60c67e783424faf843c8efa1.tar.gz |
Use title and description fields for issue trackers63690-issue-trackers-title
- instead of using properties
- backward compatibility has to be kept for now
Diffstat (limited to 'spec/models/service_spec.rb')
-rw-r--r-- | spec/models/service_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index d442c73c118..0797b9a9d83 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -244,7 +244,8 @@ describe Service do let(:service) do GitlabIssueTrackerService.create( project: create(:project), - title: 'random title' + title: 'random title', + project_url: 'http://gitlab.example.com' ) end @@ -252,8 +253,12 @@ describe Service do expect { service }.not_to raise_error end + it 'sets title correctly' do + expect(service.title).to eq('random title') + end + it 'creates the properties' do - expect(service.properties).to eq({ "title" => "random title" }) + expect(service.properties).to eq({ "project_url" => "http://gitlab.example.com" }) end end |