From eec0dc46a6d6782f6aebdc759d4822ef17fd57a2 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 5 Sep 2016 18:39:53 +0200 Subject: PostStatusService can attach media to status, ProcessFeedService likewise --- spec/controllers/statuses_controller_spec.rb | 24 ------------------------ spec/helpers/api/accounts/lookup_helper_spec.rb | 12 +----------- spec/helpers/api/media_helper_spec.rb | 12 +----------- spec/helpers/statuses_helper_spec.rb | 15 --------------- 4 files changed, 2 insertions(+), 61 deletions(-) delete mode 100644 spec/controllers/statuses_controller_spec.rb delete mode 100644 spec/helpers/statuses_helper_spec.rb (limited to 'spec') 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 diff --git a/spec/helpers/api/accounts/lookup_helper_spec.rb b/spec/helpers/api/accounts/lookup_helper_spec.rb index 64ec826af..8ae1c6f9d 100644 --- a/spec/helpers/api/accounts/lookup_helper_spec.rb +++ b/spec/helpers/api/accounts/lookup_helper_spec.rb @@ -1,15 +1,5 @@ require 'rails_helper' -# Specs in this file have access to a helper object that includes -# the Api::Accounts::LookupHelper. For example: -# -# describe Api::Accounts::LookupHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# expect(helper.concat_strings("this","that")).to eq("this that") -# end -# end -# end RSpec.describe Api::Accounts::LookupHelper, type: :helper do - pending "add some examples to (or delete) #{__FILE__}" + end diff --git a/spec/helpers/api/media_helper_spec.rb b/spec/helpers/api/media_helper_spec.rb index 5813264ad..5eb2def2a 100644 --- a/spec/helpers/api/media_helper_spec.rb +++ b/spec/helpers/api/media_helper_spec.rb @@ -1,15 +1,5 @@ require 'rails_helper' -# Specs in this file have access to a helper object that includes -# the Api::MediaHelper. For example: -# -# describe Api::MediaHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# expect(helper.concat_strings("this","that")).to eq("this that") -# end -# end -# end RSpec.describe Api::MediaHelper, type: :helper do - pending "add some examples to (or delete) #{__FILE__}" + end diff --git a/spec/helpers/statuses_helper_spec.rb b/spec/helpers/statuses_helper_spec.rb deleted file mode 100644 index db312abdd..000000000 --- a/spec/helpers/statuses_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails_helper' - -# Specs in this file have access to a helper object that includes -# the StatusesHelper. For example: -# -# describe StatusesHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# expect(helper.concat_strings("this","that")).to eq("this that") -# end -# end -# end -RSpec.describe StatusesHelper, type: :helper do - pending "add some examples to (or delete) #{__FILE__}" -end -- cgit