2016-11-30 17:01:03 -05:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2017-01-23 07:36:17 -05:00
|
|
|
RSpec.describe Api::OEmbedController, type: :controller do
|
|
|
|
let(:alice) { Fabricate(:account, username: 'alice') }
|
|
|
|
let(:status) { Fabricate(:status, text: 'Hello world', account: alice) }
|
2016-11-30 17:01:03 -05:00
|
|
|
|
2017-01-23 07:36:17 -05: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 17:01:03 -05:00
|
|
|
end
|