2016-11-30 23:01:03 +01:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2017-01-23 13:36:17 +01: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 23:01:03 +01:00
|
|
|
|
2017-01-23 13:36:17 +01: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 23:01:03 +01:00
|
|
|
end
|