You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/spec/requests/asciicast_upload_spec.rb

14 lines
457 B
Ruby

require 'spec_helper'
describe "Asciicast upload" do
it 'returns the URL to the uploaded asciicast' do
post '/api/asciicasts', :asciicast => {
:meta => fixture_file('meta.json', 'application/json'),
:stdout => fixture_file('stdout', 'application/octet-stream'),
:stdout_timing => fixture_file('stdout.time', 'application/octet-stream')
}
expect(response.body).to eq(asciicast_url(Asciicast.last))
end
end