diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2015-09-25 23:07:08 +0300 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2015-10-08 23:37:04 +0300 |
commit | 6b739027330cb07484b71c748e30d5966f63d647 (patch) | |
tree | 2cdf6793f774e5bb3a49dec4b369e4e13cb396ea /spec | |
parent | 380392212f87fc80bd45c322eda54461d47745b0 (diff) |
merge_request: add work_in_progress to MR hooks
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/merge_request_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index 17a49013d25..6aaf1c036b0 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -165,6 +165,17 @@ describe MergeRequest do end end + describe "#hook_attrs" do + it "has all the required keys" do + attrs = subject.hook_attrs + attrs = attrs.to_h + expect(attrs).to include(:source) + expect(attrs).to include(:target) + expect(attrs).to include(:last_commit) + expect(attrs).to include(:work_in_progress) + end + end + it_behaves_like 'an editable mentionable' do subject { create(:merge_request) } |