This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
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
|
2017-05-30 22:30:06 +02:00
|
|
|
render_views
|
|
|
|
|
2017-01-23 13:36:17 +01:00
|
|
|
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
|