Skip to content
Snippets Groups Projects
Commit 7ff9008f authored by Hiroyuki Sato's avatar Hiroyuki Sato
Browse files

Change double quotes to single quotes

parent 9b25bbc4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment