Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroyuki Sato <sathiroyuki@gmail.com>2017-07-23 15:43:32 +0300
committerHiroyuki Sato <sathiroyuki@gmail.com>2017-07-23 15:43:32 +0300
commitdf65334ecadbc426a535237211a4d8eec53f52c0 (patch)
tree8312d4cac72946879304a346ee17b2b342d0e1e8 /spec/models/wiki_page_spec.rb
parent7ff9008f3e533f2e0442c7a07ef1c67c119822ea (diff)
Refactor: use keyword arguments for optional parameters
Diffstat (limited to 'spec/models/wiki_page_spec.rb')
-rw-r--r--spec/models/wiki_page_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/wiki_page_spec.rb b/spec/models/wiki_page_spec.rb
index 220b70503f0..732a32684e8 100644
--- a/spec/models/wiki_page_spec.rb
+++ b/spec/models/wiki_page_spec.rb
@@ -212,14 +212,14 @@ describe WikiPage, models: true do
context 'with same last commit sha' do
it 'returns true' do
last_commit_sha = @page.commit.sha
- expect(@page.update('more content', :markdown, nil, last_commit_sha)).to be_truthy
+ expect(@page.update('more content', last_commit_sha: last_commit_sha)).to be_truthy
end
end
context 'with different last commit sha' do
it 'raises exception' do
last_commit_sha = 'xxx'
- expect { @page.update('more content', :markdown, nil, last_commit_sha) }.to raise_error(WikiPage::PageChangedError)
+ expect { @page.update('more content', last_commit_sha: last_commit_sha) }.to raise_error(WikiPage::PageChangedError)
end
end
end