2016-11-30 14:01:03 -08:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2017-01-23 04:36:17 -08:00
|
|
|
RSpec.describe Api::OEmbedController, type: :controller do
|
2017-05-30 13:30:06 -07:00
|
|
|
render_views
|
|
|
|
|
2017-01-23 04:36:17 -08:00
|
|
|
let(:alice) { Fabricate(:account, username: 'alice') }
|
|
|
|
let(:status) { Fabricate(:status, text: 'Hello world', account: alice) }
|
2016-11-30 14:01:03 -08:00
|
|
|
|
2017-01-23 04:36:17 -08:00
|
|
|
describe 'GET #show' do
|
|
|
|
before do
|
|
|
|
get :show, params: { url: account_stream_entry_url(alice, status.stream_entry) }, format: :json
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'returns http success' do
|
|
|
|
expect(response).to have_http_status(:success)
|
|
|
|
end
|
|
|
|
end
|
2016-11-30 14:01:03 -08:00
|
|
|
end
|