14 lines
457 B
Ruby
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
|