about summary refs log tree commit diff
path: root/spec/controllers
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-30 16:30:06 -0400
committerGitHub <noreply@github.com>2017-05-30 16:30:06 -0400
commit3576fa0d591db69a1727153a1130ff5bebf37167 (patch)
tree93fd386972bcf128b91d0296865239631286ef11 /spec/controllers
parent1dcfb902024a7d4049306d9bc48c499856e2e429 (diff)
Improve api oembed controller (#3450)
* Add StreamEntryFinder class to parse URLs

* Use StreamEntryFinder and clean up api/oembed controller
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/api/oembed_controller_spec.rb2
1 files changed, 2 insertions, 0 deletions
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) }