File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lib/fastlane/plugin/wpmreleasetoolkit/actions/common Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ def self.available_options
83
83
type : String ,
84
84
verify_block : proc { |key |
85
85
next if key . is_a? ( String ) && !key . empty?
86
+
86
87
UI . user_error! ( 'The provided key must not be empty. Use nil instead if you want to default to the file basename' )
87
88
}
88
89
) ,
Original file line number Diff line number Diff line change 9
9
end
10
10
11
11
# Stub head_object to return a specific content_length
12
- def stub_s3_response_for_file ( key , exists = true )
12
+ def stub_s3_response_for_file ( key , exists : true )
13
13
content_length = exists == true ? 1 : 0
14
14
allow ( client ) . to ( receive ( :head_object ) )
15
- . with ( bucket : test_bucket , key : key )
16
- . and_return ( Aws ::S3 ::Types ::HeadObjectOutput . new ( content_length : content_length ) )
15
+ . with ( bucket : test_bucket , key : key )
16
+ . and_return ( Aws ::S3 ::Types ::HeadObjectOutput . new ( content_length : content_length ) )
17
17
end
18
18
19
19
describe 'uploading a file with valid parameters' do
You can’t perform that action at this time.
0 commit comments