Improve api oembed controller (#3450)
* Add StreamEntryFinder class to parse URLs * Use StreamEntryFinder and clean up api/oembed controller
This commit is contained in:
parent
1dcfb90202
commit
3576fa0d59
4 changed files with 92 additions and 17 deletions
|
@ -1,6 +1,8 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Api::OEmbedController, type: :controller do
|
||||
render_views
|
||||
|
||||
let(:alice) { Fabricate(:account, username: 'alice') }
|
||||
let(:status) { Fabricate(:status, text: 'Hello world', account: alice) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue