Skip to content

Commit

Permalink
test attachement upload
Browse files Browse the repository at this point in the history
  • Loading branch information
equivalent committed May 9, 2016
1 parent 82b8faf commit 6145547
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions carrierwave.md
@@ -1,5 +1,13 @@
# CarrierWave File Uploader Scrapbook

## testing upload file

```
include Rack::Test::Methods
post "/upload/", "attachement" => Rack::Test::UploadedFile.new("path/to/file.ext", "mime/type")
```

## Store / Retrieve without model

```ruby
Expand Down
11 changes: 11 additions & 0 deletions paperclip.md
@@ -0,0 +1,11 @@
# paperclip

## testing upload file

```
include Rack::Test::Methods
post "/upload/", "attachement" => Rack::Test::UploadedFile.new("path/to/file.ext", "mime/type")
```


0 comments on commit 6145547

Please sign in to comment.