0
0
Fork 0

Improve api oembed controller (#3450)

* Add StreamEntryFinder class to parse URLs

* Use StreamEntryFinder and clean up api/oembed controller
This commit is contained in:
Matt Jankowski 2017-05-30 16:30:06 -04:00 committed by GitHub
parent 1dcfb90202
commit 3576fa0d59
4 changed files with 92 additions and 17 deletions

View file

@ -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) }