remove spec containing mock
This commit is contained in:
parent
49f97d75b7
commit
e61629ed84
|
@ -30,18 +30,6 @@ describe UploadsController do
|
||||||
end.to raise_error(ActionController::ParameterMissing)
|
end.to raise_error(ActionController::ParameterMissing)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'parameterize the type' do
|
|
||||||
subject.expects(:create_upload).with(
|
|
||||||
anything,
|
|
||||||
nil,
|
|
||||||
"super_long_type_with_charssuper_long_type_with_char",
|
|
||||||
false,
|
|
||||||
false
|
|
||||||
)
|
|
||||||
|
|
||||||
post :create, params: { format: :json, file: logo, type: "super \# long \//\\ type with \\. $%^&*( chars" * 5 }
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'can look up long urls' do
|
it 'can look up long urls' do
|
||||||
upload = Fabricate(:upload)
|
upload = Fabricate(:upload)
|
||||||
post :lookup_urls, params: { short_urls: [upload.short_url], format: :json }
|
post :lookup_urls, params: { short_urls: [upload.short_url], format: :json }
|
||||||
|
|
Loading…
Reference in New Issue