push
travis-ci
15 of 15 new or added lines in 4 files covered. (100.0%)
3348 of 6540 relevant lines covered (51.19%)
12.04 hits per line
1 |
module Sufia::UploadsControllerBehavior |
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
2 |
extend ActiveSupport::Concern |
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
3 |
|
× |
4 |
included do
|
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
5 |
load_and_authorize_resource class: Sufia::UploadedFile |
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
6 |
end
|
× |
7 |
|
× |
8 |
def create |
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
9 |
@upload.attributes = { file: params[:files].first, |
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
10 |
user: current_user }
|
× |
11 |
@upload.save!
|
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
12 |
end
|
× |
13 |
|
× |
14 |
def destroy |
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
15 |
@upload.destroy
|
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
16 |
head :no_content
|
1 only 2.3.1, RAILS_VERSION=4.2.7.1 ✔ |
17 |
end
|
× |
18 |
end
|
× |