]> cat aescling's git repositories - mastodon.git/commitdiff
Add controller spec for manifests controller (#4003)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Fri, 30 Jun 2017 11:43:34 +0000 (07:43 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 30 Jun 2017 11:43:34 +0000 (13:43 +0200)
spec/controllers/manifests_controller_spec.rb [new file with mode: 0644]

diff --git a/spec/controllers/manifests_controller_spec.rb b/spec/controllers/manifests_controller_spec.rb
new file mode 100644 (file)
index 0000000..6f188fa
--- /dev/null
@@ -0,0 +1,19 @@
+require 'rails_helper'
+
+describe ManifestsController do
+  render_views
+
+  describe 'GET #show' do
+    before do
+      get :show, format: :json
+    end
+
+    it 'assigns @instance_presenter' do
+      expect(assigns(:instance_presenter)).to be_kind_of InstancePresenter
+    end
+
+    it 'returns http success' do
+      expect(response).to have_http_status(:success)
+    end
+  end
+end