mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
fix the build
This commit is contained in:
parent
b44488b618
commit
7d3b7a5657
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ describe UploadsController do
|
|||
end
|
||||
|
||||
it "returns 404 when the upload doens't exist" do
|
||||
Upload.expects(:find_by).with(sha1: sha).returns(nil)
|
||||
Upload.stubs(:find_by).returns(nil)
|
||||
|
||||
get :show, site: site, sha: sha, extension: "pdf"
|
||||
expect(response.response_code).to eq(404)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue