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.

16 lines
472 B

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