Skip to content
Snippets Groups Projects
Commit 7c015ece authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix oembed controller test

parent 6062680d
No related branches found
No related tags found
No related merge requests found
require 'rails_helper'
RSpec.describe Api::OembedController, type: :controller do
RSpec.describe Api::OEmbedController, type: :controller do
let(:alice) { Fabricate(:account, username: 'alice') }
let(:status) { Fabricate(:status, text: 'Hello world', account: alice) }
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
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment