Skip to content

Commit

Permalink
Fix the uploaded image path generator spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Nov 30, 2020
1 parent c7dae1e commit e4d15ae
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,6 +31,6 @@ function it_generates_random_hashed_path_for_the_image(ImageInterface $image): v

$image->getFile()->willReturn($file);

$this->generate($image)->shouldMatch('/[a-z0-9]{2}\/[a-z0-9]{2}\/[a-zA-Z0-9]+[_-]*[.]jpeg/i');
$this->generate($image)->shouldMatch('/[a-z0-9]{2}\/[a-z0-9]{2}\/[a-zA-Z0-9]+[_-]*[.]jpe?g/i');
}
}

0 comments on commit e4d15ae

Please sign in to comment.