diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-30 16:30:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-30 16:30:06 -0400 |
commit | 3576fa0d591db69a1727153a1130ff5bebf37167 (patch) | |
tree | 93fd386972bcf128b91d0296865239631286ef11 /spec/controllers/api | |
parent | 1dcfb902024a7d4049306d9bc48c499856e2e429 (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/api')
-rw-r--r-- | spec/controllers/api/oembed_controller_spec.rb | 2 |
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) } |