summaryrefslogtreecommitdiff
path: root/spec/models/project_wiki_spec.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-09-18 10:04:15 +0100
committerNick Thomas <nick@gitlab.com>2018-09-18 12:04:49 +0100
commit5a883915793f0f89f850d5393dce497ff9c5f893 (patch)
tree14a8e12d7554affbd48b29bc2e8efec082cbb128 /spec/models/project_wiki_spec.rb
parent12f9879295ac9abdd0d6aff47cc3828c9ca36dc7 (diff)
downloadgitlab-ce-5a883915793f0f89f850d5393dce497ff9c5f893.tar.gz
Guard against regressions in commit email specs
Diffstat (limited to 'spec/models/project_wiki_spec.rb')
-rw-r--r--spec/models/project_wiki_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/project_wiki_spec.rb b/spec/models/project_wiki_spec.rb
index f607bb7a917..f38fc191943 100644
--- a/spec/models/project_wiki_spec.rb
+++ b/spec/models/project_wiki_spec.rb
@@ -280,6 +280,7 @@ describe ProjectWiki do
it 'sets the correct commit email' do
subject.create_page('test page', 'content')
+ expect(user.commit_email).not_to eq(user.email)
expect(commit.author_email).to eq(user.commit_email)
expect(commit.committer_email).to eq(user.commit_email)
end
@@ -329,6 +330,7 @@ describe ProjectWiki do
end
it 'sets the correct commit email' do
+ expect(user.commit_email).not_to eq(user.email)
expect(commit.author_email).to eq(user.commit_email)
expect(commit.committer_email).to eq(user.commit_email)
end
@@ -363,6 +365,7 @@ describe ProjectWiki do
it 'sets the correct commit email' do
subject.delete_page(@page)
+ expect(user.commit_email).not_to eq(user.email)
expect(commit.author_email).to eq(user.commit_email)
expect(commit.committer_email).to eq(user.commit_email)
end