diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2017-07-23 21:30:10 +0900 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2017-07-23 21:30:10 +0900 |
commit | 7ff9008f3e533f2e0442c7a07ef1c67c119822ea (patch) | |
tree | 17966d25a0906718f9bdf07cd3e7a62349763c6a /spec/models | |
parent | 9b25bbc45d4e6602452e230506601ff0ed8ba84a (diff) | |
download | gitlab-ce-7ff9008f3e533f2e0442c7a07ef1c67c119822ea.tar.gz |
Change double quotes to single quotes
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/wiki_page_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/models/wiki_page_spec.rb b/spec/models/wiki_page_spec.rb index 4f462044532..220b70503f0 100644 --- a/spec/models/wiki_page_spec.rb +++ b/spec/models/wiki_page_spec.rb @@ -209,17 +209,17 @@ describe WikiPage, models: true do end end - context "with same last commit sha" do - it "returns 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', :markdown, nil, 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) + 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) end end end |