Skip to content

Commit

Permalink
Change small grammar mistake in error message for speech file
Browse files Browse the repository at this point in the history
  • Loading branch information
gching committed Jun 16, 2014
1 parent 1ba8d06 commit 0dd9745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/wit_ruby/rest/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def send_sound_message(sound_file_path)
sound_file_type = sound_file_path.split(".")[-1]
## Raise error if not accepted
unless ["wav", "mp3", "ulaw", "raw"].include?(sound_file_type)
raise NotCorrectSchema.new("The current sound file is not one of thes supported types. The file types accepted are .wav, .mp3, .ulaw and .raw")
raise NotCorrectSchema.new("The current sound file is not one of the supported types. The file types accepted are .wav, .mp3, .ulaw and .raw")
end

## Set Content-Type header by overiding it with the correct filetype.
Expand Down
2 changes: 1 addition & 1 deletion spec/wit_ruby/rest/session_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

let(:sent_message_sound_result) {session.send_sound_message(test_sound_file_hello_path)}
before do
VCR.insert_cassette 'send_sound_message', record: :once
VCR.insert_cassette 'send_sound_message', record: :once, preserve_exact_body_bytes: true
end
after do
VCR.eject_cassette
Expand Down

0 comments on commit 0dd9745

Please sign in to comment.