about summary refs log tree commit diff
path: root/spec/controllers/statuses_controller_spec.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-05 18:39:53 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-05 18:39:53 +0200
commiteec0dc46a6d6782f6aebdc759d4822ef17fd57a2 (patch)
tree0c3f88e90e1f5274df1805c97181c3d6f3e3e40a /spec/controllers/statuses_controller_spec.rb
parentae1fac006206ab28cd7cba63ab85c07a27f3d606 (diff)
PostStatusService can attach media to status, ProcessFeedService likewise
Diffstat (limited to 'spec/controllers/statuses_controller_spec.rb')
-rw-r--r--spec/controllers/statuses_controller_spec.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/controllers/statuses_controller_spec.rb b/spec/controllers/statuses_controller_spec.rb
deleted file mode 100644
index 812d75127..000000000
--- a/spec/controllers/statuses_controller_spec.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-require 'rails_helper'
-
-RSpec.describe StatusesController, type: :controller do
-  let(:user) { Fabricate(:user) }
-
-  before do
-    sign_in user, scope: :user
-  end
-
-  describe 'POST #create' do
-    before do
-      stub_request(:post, "https://pubsubhubbub.superfeedr.com/").to_return(:status => 200, :body => "", :headers => {})
-      post :create, params: { status: { text: 'Hello world' } }
-    end
-
-    it 'redirects back to homepage' do
-      expect(response).to redirect_to(root_path)
-    end
-
-    it 'creates a new status' do
-      expect(user.account.statuses.count).to eq 1
-    end
-  end
-end