You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
488 B

  1. require 'rails_helper'
  2. RSpec.describe Api::OEmbedController, type: :controller do
  3. render_views
  4. let(:alice) { Fabricate(:account, username: 'alice') }
  5. let(:status) { Fabricate(:status, text: 'Hello world', account: alice) }
  6. describe 'GET #show' do
  7. before do
  8. get :show, params: { url: account_stream_entry_url(alice, status.stream_entry) }, format: :json
  9. end
  10. it 'returns http success' do
  11. expect(response).to have_http_status(:success)
  12. end
  13. end
  14. end