Skip to content

Commit

Permalink
Simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderdean committed May 12, 2014
1 parent c3ec1a9 commit 5d7d0fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/storage/s3/s3_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
it 'should allow filenames to be renamed' do

concat_subdir = lambda { |basename, filepath|
if m = filepath.match('([^/]+)/([^/]+)$')
return m[1] + '-' + m[2]
if m = filepath.match('([^/]+)/[^/]+$')
return m[1] + '-' + basename
else
return filepath
end
Expand Down

0 comments on commit 5d7d0fc

Please sign in to comment.