From 3576fa0d591db69a1727153a1130ff5bebf37167 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 30 May 2017 16:30:06 -0400 Subject: Improve api oembed controller (#3450) * Add StreamEntryFinder class to parse URLs * Use StreamEntryFinder and clean up api/oembed controller --- spec/controllers/api/oembed_controller_spec.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/controllers') diff --git a/spec/controllers/api/oembed_controller_spec.rb b/spec/controllers/api/oembed_controller_spec.rb index 511cdb463..43631a7e5 100644 --- a/spec/controllers/api/oembed_controller_spec.rb +++ b/spec/controllers/api/oembed_controller_spec.rb @@ -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) } -- cgit