Created
February 22, 2016 20:00
-
-
Save bfaist/a36dc00f8b7fa8baa870 to your computer and use it in GitHub Desktop.
Test POST of Audio File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $audio_asset = Mojo::Asset::File->new(path => './t/test_audio.wav'); | |
my $audio_content = $audio_asset->slurp; | |
$t = $t->post_ok('/audio' => $audio_content)->status_is(200); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment