require spec_helper in .rspec

closes #7223
This commit is contained in:
Justin Ramos 2016-11-25 15:17:02 +00:00 committed by Benjamin Neff
parent 9f88850faf
commit fa71af71c1
245 changed files with 2 additions and 482 deletions

1
.rspec
View file

@ -3,3 +3,4 @@
--color --color
--tag ~performance --tag ~performance
--order random --order random
--require spec_helper

View file

@ -11,6 +11,7 @@
* Refactor flash messages on ajax errors for comments, likes, reshares and aspect memberships [#7202](https://github.com/diaspora/diaspora/pull/7202) * Refactor flash messages on ajax errors for comments, likes, reshares and aspect memberships [#7202](https://github.com/diaspora/diaspora/pull/7202)
* Only require AWS-module for fog [#7201](https://github.com/diaspora/diaspora/pull/7201) * Only require AWS-module for fog [#7201](https://github.com/diaspora/diaspora/pull/7201)
* Only show community spotlight links on the contacts page if community spotlight is enabled [#7213](https://github.com/diaspora/diaspora/pull/7213) * Only show community spotlight links on the contacts page if community spotlight is enabled [#7213](https://github.com/diaspora/diaspora/pull/7213)
* Require spec\_helper in .rspec [#7223](https://github.com/diaspora/diaspora/pull/7223)
## Bug fixes ## Bug fixes
* Fix fetching comments after fetching likes [#7167](https://github.com/diaspora/diaspora/pull/7167) * Fix fetching comments after fetching likes [#7167](https://github.com/diaspora/diaspora/pull/7167)

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe "ensure configuration effects" do describe "ensure configuration effects" do
it "sets the captcha length as required" do it "sets the captcha length as required" do
expect(SimpleCaptcha.length).to eq(AppConfig.settings.captcha.captcha_length.to_i) expect(SimpleCaptcha.length).to eq(AppConfig.settings.captcha.captcha_length.to_i)

View file

@ -1,6 +1,3 @@
require "spec_helper"
describe Admin::PodsController, type: :controller do describe Admin::PodsController, type: :controller do
before do before do
@user = FactoryGirl.create :user @user = FactoryGirl.create :user

View file

@ -1,6 +1,3 @@
require 'spec_helper'
describe Admin::UsersController, :type => :controller do describe Admin::UsersController, :type => :controller do
before do before do
@user = FactoryGirl.create :user @user = FactoryGirl.create :user

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe AdminsController, :type => :controller do describe AdminsController, :type => :controller do
before do before do
@user = FactoryGirl.create :user @user = FactoryGirl.create :user

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::AuthorizationsController, type: :controller do describe Api::OpenidConnect::AuthorizationsController, type: :controller do
let!(:client) { FactoryGirl.create(:o_auth_application) } let!(:client) { FactoryGirl.create(:o_auth_application) }
let!(:client_with_xss) { FactoryGirl.create(:o_auth_application_with_xss) } let!(:client_with_xss) { FactoryGirl.create(:o_auth_application_with_xss) }

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::ClientsController, type: :controller, suppress_csrf_verification: :none do describe Api::OpenidConnect::ClientsController, type: :controller, suppress_csrf_verification: :none do
describe "#create" do describe "#create" do
context "when valid parameters are passed" do context "when valid parameters are passed" do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::DiscoveryController, type: :controller do describe Api::OpenidConnect::DiscoveryController, type: :controller do
describe "#webfinger" do describe "#webfinger" do
before do before do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::IdTokensController, type: :controller do describe Api::OpenidConnect::IdTokensController, type: :controller do
describe "#jwks" do describe "#jwks" do
before do before do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::TokenEndpointController, type: :controller, suppress_csrf_verification: :none do describe Api::OpenidConnect::TokenEndpointController, type: :controller, suppress_csrf_verification: :none do
let(:auth) { FactoryGirl.create(:auth_with_read) } let(:auth) { FactoryGirl.create(:auth_with_read) }

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::UserApplicationsController, type: :controller do describe Api::OpenidConnect::UserApplicationsController, type: :controller do
before do before do
@app = FactoryGirl.create(:o_auth_application_with_xss) @app = FactoryGirl.create(:o_auth_application_with_xss)

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ApplicationController, :type => :controller do describe ApplicationController, :type => :controller do
controller do controller do
def index def index

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe AspectMembershipsController, type: :controller do describe AspectMembershipsController, type: :controller do
before do before do
@aspect0 = alice.aspects.first @aspect0 = alice.aspects.first

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe AspectsController, :type => :controller do describe AspectsController, :type => :controller do
before do before do
alice.getting_started = false alice.getting_started = false

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe BlocksController, :type => :controller do describe BlocksController, :type => :controller do
before do before do
sign_in alice sign_in alice

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe CommentsController, :type => :controller do describe CommentsController, :type => :controller do
before do before do
allow(@controller).to receive(:current_user).and_return(alice) allow(@controller).to receive(:current_user).and_return(alice)

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ContactsController, :type => :controller do describe ContactsController, :type => :controller do
before do before do
sign_in bob, scope: :user sign_in bob, scope: :user

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ConversationVisibilitiesController, :type => :controller do describe ConversationVisibilitiesController, :type => :controller do
before do before do
@user1 = alice @user1 = alice

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ConversationsController, :type => :controller do describe ConversationsController, :type => :controller do
before do before do
sign_in alice, scope: :user sign_in alice, scope: :user

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe HelpController, type: :controller do describe HelpController, type: :controller do
describe "#faq" do describe "#faq" do
it "succeeds" do it "succeeds" do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe HomeController, type: :controller do describe HomeController, type: :controller do
describe "#show" do describe "#show" do
it "does not redirect for :html if there are at least 2 users and an admin" do it "does not redirect for :html if there are at least 2 users and an admin" do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe InvitationCodesController, type: :controller do describe InvitationCodesController, type: :controller do
describe "#show" do describe "#show" do
it "redirects to the root page if the invitation code is invalid" do it "redirects to the root page if the invitation code is invalid" do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe InvitationsController, type: :controller do describe InvitationsController, type: :controller do
describe "#create" do describe "#create" do
let(:referer) { "http://test.host/cats/foo" } let(:referer) { "http://test.host/cats/foo" }

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe AdminsController, type: :controller do describe AdminsController, type: :controller do
describe "#dashboard" do describe "#dashboard" do
before do before do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe StreamsController, :type => :controller do describe StreamsController, :type => :controller do
describe '#aspects' do describe '#aspects' do
before do before do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ContactsController, :type => :controller do describe ContactsController, :type => :controller do
describe '#index' do describe '#index' do
before do before do

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe ConversationsController, :type => :controller do describe ConversationsController, :type => :controller do
describe '#index' do describe '#index' do
before do before do

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe NotificationsController, :type => :controller do describe NotificationsController, :type => :controller do
describe '#index' do describe '#index' do
before do before do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe PeopleController, :type => :controller do describe PeopleController, :type => :controller do
describe '#index' do describe '#index' do
before do before do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe PhotosController, :type => :controller do describe PhotosController, :type => :controller do
before do before do
@alices_photo = alice.post(:photo, :user_file => uploaded_photo, :to => alice.aspects.first.id, :public => false) @alices_photo = alice.post(:photo, :user_file => uploaded_photo, :to => alice.aspects.first.id, :public => false)

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe StatusMessagesController, :type => :controller do describe StatusMessagesController, :type => :controller do
describe '#bookmarklet' do describe '#bookmarklet' do
before do before do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe StreamsController, :type => :controller do describe StreamsController, :type => :controller do
describe '#multi' do describe '#multi' do
before do before do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe UsersController, type: :controller do describe UsersController, type: :controller do
before do before do
sign_in alice, scope: :user sign_in alice, scope: :user

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe LikesController, :type => :controller do describe LikesController, :type => :controller do
before do before do
@alices_aspect = alice.aspects.where(:name => "generic").first @alices_aspect = alice.aspects.where(:name => "generic").first

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe MessagesController, :type => :controller do describe MessagesController, :type => :controller do
before do before do
sign_in(alice, scope: :user) sign_in(alice, scope: :user)

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe NodeInfoController do describe NodeInfoController do
describe "#jrd" do describe "#jrd" do
it "responds to JSON" do it "responds to JSON" do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe NotificationsController, :type => :controller do describe NotificationsController, :type => :controller do
before do before do
sign_in alice, scope: :user sign_in alice, scope: :user

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe ParticipationsController, :type => :controller do describe ParticipationsController, :type => :controller do
before do before do
allow(@controller).to receive(:current_user).and_return(alice) allow(@controller).to receive(:current_user).and_return(alice)

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe Devise::PasswordsController, type: :controller do describe Devise::PasswordsController, type: :controller do
before do before do
@request.env["devise.mapping"] = Devise.mappings[:user] @request.env["devise.mapping"] = Devise.mappings[:user]

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe PeopleController, :type => :controller do describe PeopleController, :type => :controller do
include_context :gon include_context :gon

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe PhotosController, :type => :controller do describe PhotosController, :type => :controller do
before do before do
@alices_photo = alice.post(:photo, :user_file => uploaded_photo, :to => alice.aspects.first.id, :public => false) @alices_photo = alice.post(:photo, :user_file => uploaded_photo, :to => alice.aspects.first.id, :public => false)

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe PostsController, type: :controller do describe PostsController, type: :controller do
let(:post) { alice.post(:status_message, text: "ohai", to: alice.aspects.first) } let(:post) { alice.post(:status_message, text: "ohai", to: alice.aspects.first) }

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ProfilesController, :type => :controller do describe ProfilesController, :type => :controller do
before do before do
sign_in eve, scope: :user sign_in eve, scope: :user

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe RegistrationsController, type: :controller do describe RegistrationsController, type: :controller do
before do before do
request.env["devise.mapping"] = Devise.mappings[:user] request.env["devise.mapping"] = Devise.mappings[:user]

View file

@ -1,10 +1,7 @@
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe ReportController, type: :controller do describe ReportController, type: :controller do
before do before do
sign_in alice sign_in alice

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe ResharesController, :type => :controller do describe ResharesController, :type => :controller do
describe '#create' do describe '#create' do
let(:post_request!) { let(:post_request!) {

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe SearchController, :type => :controller do describe SearchController, :type => :controller do
before do before do
@user = alice @user = alice

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ServicesController, :type => :controller do describe ServicesController, :type => :controller do
let(:omniauth_auth) do let(:omniauth_auth) do
{ 'provider' => 'facebook', { 'provider' => 'facebook',

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe SessionsController, type: :controller do describe SessionsController, type: :controller do
let(:mock_access_token) { Object.new } let(:mock_access_token) { Object.new }

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ShareVisibilitiesController, :type => :controller do describe ShareVisibilitiesController, :type => :controller do
before do before do
@status = alice.post(:status_message, :text => "hello", :to => alice.aspects.first) @status = alice.post(:status_message, :text => "hello", :to => alice.aspects.first)

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe SocialRelayController, type: :controller do describe SocialRelayController, type: :controller do
describe "#well_known" do describe "#well_known" do
it "responds to format json" do it "responds to format json" do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe StatusMessagesController, :type => :controller do describe StatusMessagesController, :type => :controller do
before do before do
@aspect1 = alice.aspects.first @aspect1 = alice.aspects.first

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe StreamsController, :type => :controller do describe StreamsController, :type => :controller do
before do before do
sign_in alice sign_in alice

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe TagFollowingsController, type: :controller do describe TagFollowingsController, type: :controller do
describe "#manage" do describe "#manage" do
context "not signed in" do context "not signed in" do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe TagsController, :type => :controller do describe TagsController, :type => :controller do
describe '#index (search)' do describe '#index (search)' do
before do before do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe TermsController, type: :controller do describe TermsController, type: :controller do
describe "#index" do describe "#index" do
it "succeeds" do it "succeeds" do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe UsersController, :type => :controller do describe UsersController, :type => :controller do
include_context :gon include_context :gon

View file

@ -1,4 +1,3 @@
require "spec_helper"
require "diaspora_federation/test" require "diaspora_federation/test"
describe "diaspora federation callbacks" do describe "diaspora federation callbacks" do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe ApplicationHelper, :type => :helper do describe ApplicationHelper, :type => :helper do
before do before do
@user = alice @user = alice

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe ConversationsHelper, :type => :helper do describe ConversationsHelper, :type => :helper do
before do before do
@conversation = FactoryGirl.create(:conversation) @conversation = FactoryGirl.create(:conversation)

View file

@ -1,7 +1,6 @@
# Copyright (c) 2010-2011, Diaspora Inc. This file is # Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe GettingStartedHelper, :type => :helper do describe GettingStartedHelper, :type => :helper do
before do before do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe GonHelper, type: :helper do describe GonHelper, type: :helper do
include_context :gon include_context :gon

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe InterimStreamHackinessHelper, type: :helper do describe InterimStreamHackinessHelper, type: :helper do
describe "commenting_disabled?" do describe "commenting_disabled?" do
include Devise::Test::ControllerHelpers include Devise::Test::ControllerHelpers

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe JsxcHelper, :type => :helper do describe JsxcHelper, :type => :helper do
before do before do
AppConfig.chat.server.bosh.port = 1234 AppConfig.chat.server.bosh.port = 1234

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe LanguageHelper, type: :helper do describe LanguageHelper, type: :helper do
describe "#get_javascript_strings_for" do describe "#get_javascript_strings_for" do
it "generates a jasmine fixture", fixture: true do it "generates a jasmine fixture", fixture: true do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe LayoutHelper, :type => :helper do describe LayoutHelper, :type => :helper do
describe "#page_title" do describe "#page_title" do
context "passed blank text" do context "passed blank text" do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe MetaDataHelper, type: :helper do describe MetaDataHelper, type: :helper do
describe "#meta_tag" do describe "#meta_tag" do
it "returns an empty string if passed an empty hash" do it "returns an empty string if passed an empty hash" do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe NotificationsHelper, type: :helper do describe NotificationsHelper, type: :helper do
include ApplicationHelper include ApplicationHelper

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe NotifierHelper, :type => :helper do describe NotifierHelper, :type => :helper do
describe '#post_message' do describe '#post_message' do
before do before do

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe OEmbedHelper, :type => :helper do describe OEmbedHelper, :type => :helper do
describe 'o_embed_html' do describe 'o_embed_html' do
scenarios = { scenarios = {

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe OpenGraphHelper, :type => :helper do describe OpenGraphHelper, :type => :helper do
describe 'og_html' do describe 'og_html' do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe PeopleHelper, :type => :helper do describe PeopleHelper, :type => :helper do
before do before do
@user = alice @user = alice

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe PostsHelper, :type => :helper do describe PostsHelper, :type => :helper do
describe '#post_page_title' do describe '#post_page_title' do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe ReportHelper, type: :helper do describe ReportHelper, type: :helper do
before do before do
@user = bob @user = bob

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe StreamHelper, type: :helper do describe StreamHelper, type: :helper do
describe "next_page_path" do describe "next_page_path" do
def build_controller controller_class def build_controller controller_class

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe TagsHelper, :type => :helper do describe TagsHelper, :type => :helper do
describe '#looking_for_tag_link' do describe '#looking_for_tag_link' do
it 'returns nil if there is a @ in the query' do it 'returns nil if there is a @ in the query' do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe UsersHelper, type: :helper do describe UsersHelper, type: :helper do
include Devise::Test::ControllerHelpers include Devise::Test::ControllerHelpers

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe "deleteing your account", type: :request do describe "deleteing your account", type: :request do
context "user" do context "user" do
before do before do

View file

@ -1,4 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::UserInfoController do describe Api::OpenidConnect::UserInfoController do
let!(:auth_with_read_and_ppid) { FactoryGirl.create(:auth_with_read_and_ppid) } let!(:auth_with_read_and_ppid) { FactoryGirl.create(:auth_with_read_and_ppid) }
let!(:access_token_with_read) { auth_with_read_and_ppid.create_access_token.to_s } let!(:access_token_with_read) { auth_with_read_and_ppid.create_access_token.to_s }

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe ApplicationController, type: :request do describe ApplicationController, type: :request do
describe "csrf token validation" do describe "csrf token validation" do
context "without a current user" do context "without a current user" do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe 'disconnecting a contact', :type => :request do describe 'disconnecting a contact', :type => :request do
it 'removes the aspect membership' do it 'removes the aspect membership' do
@user = alice @user = alice

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe ContactsController, type: :request do describe ContactsController, type: :request do
describe "/contacts" do describe "/contacts" do
context "user is signed in" do context "user is signed in" do

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe "Dispatching", type: :request do describe "Dispatching", type: :request do
context "a comment retraction on a public post" do context "a comment retraction on a public post" do
it "triggers a public dispatch" do it "triggers a public dispatch" do

View file

@ -2,7 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
require "integration/federation/federation_helper" require "integration/federation/federation_helper"
describe "attack vectors", type: :request do describe "attack vectors", type: :request do

View file

@ -1,4 +1,3 @@
require "spec_helper"
require "integration/federation/federation_helper" require "integration/federation/federation_helper"
require "integration/federation/shared_receive_relayable" require "integration/federation/shared_receive_relayable"
require "integration/federation/shared_receive_retraction" require "integration/federation/shared_receive_retraction"

View file

@ -1,5 +1,3 @@
require "spec_helper"
module MentioningSpecHelpers module MentioningSpecHelpers
def default_aspect def default_aspect
@user1.aspects.where(name: "generic").first @user1.aspects.where(name: "generic").first

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe PostsController, type: :request do describe PostsController, type: :request do
context "with a poll" do context "with a poll" do
let(:sm) { FactoryGirl.build(:status_message_with_poll, public: true) } let(:sm) { FactoryGirl.build(:status_message_with_poll, public: true) }

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe PeopleController, type: :request do describe PeopleController, type: :request do
context "for the current user" do context "for the current user" do
before do before do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe 'a user receives a post', :type => :request do describe 'a user receives a post', :type => :request do
before do before do
@alices_aspect = alice.aspects.where(:name => "generic").first @alices_aspect = alice.aspects.where(:name => "generic").first

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe TagsController, :type => :request do describe TagsController, :type => :request do
describe 'will_paginate people on the tag page' do describe 'will_paginate people on the tag page' do
let(:people) { (1..2).map { FactoryGirl.create(:person) } } let(:people) { (1..2).map { FactoryGirl.create(:person) } }

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe AccountDeleter do describe AccountDeleter do
before do before do
@account_deletion = AccountDeleter.new(bob.person.diaspora_handle) @account_deletion = AccountDeleter.new(bob.person.diaspora_handle)

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::ProtectedResourceEndpoint, type: :request do describe Api::OpenidConnect::ProtectedResourceEndpoint, type: :request do
let(:auth_with_read) { FactoryGirl.create(:auth_with_read) } let(:auth_with_read) { FactoryGirl.create(:auth_with_read) }
let!(:access_token_with_read) { auth_with_read.create_access_token.to_s } let!(:access_token_with_read) { auth_with_read.create_access_token.to_s }

View file

@ -1,5 +1,3 @@
require "spec_helper"
describe Api::OpenidConnect::TokenEndpoint, type: :request do describe Api::OpenidConnect::TokenEndpoint, type: :request do
let!(:client) { FactoryGirl.create(:o_auth_application_with_ppid) } let!(:client) { FactoryGirl.create(:o_auth_application_with_ppid) }
let!(:auth) { let!(:auth) {

View file

@ -1,5 +1,3 @@
require 'spec_helper'
describe Configuration::Methods do describe Configuration::Methods do
before(:all) do before(:all) do
@settings = Configurate::Settings.create do @settings = Configurate::Settings.create do

View file

@ -1,6 +1,3 @@
require "spec_helper"
describe ConnectionTester do describe ConnectionTester do
let(:url) { "https://pod.example.com" } let(:url) { "https://pod.example.com" }
let(:result) { ConnectionTester::Result.new } let(:result) { ConnectionTester::Result.new }

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
describe Diaspora::Camo do describe Diaspora::Camo do
before do before do
AppConfig.privacy.camo.root = 'http://localhost:3000/camo/' AppConfig.privacy.camo.root = 'http://localhost:3000/camo/'

View file

@ -2,7 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require 'spec_helper'
require Rails.root.join('lib', 'diaspora', 'exporter') require Rails.root.join('lib', 'diaspora', 'exporter')
describe Diaspora::Exporter do describe Diaspora::Exporter do

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe Diaspora::Federated::Base do describe Diaspora::Federated::Base do
class Foo class Foo
include Diaspora::Federated::Base include Diaspora::Federated::Base

View file

@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require "spec_helper"
describe Retraction do describe Retraction do
let(:post) { alice.post(:status_message, text: "destroy!", public: true) } let(:post) { alice.post(:status_message, text: "destroy!", public: true) }
let(:retraction) { Retraction.for(post, alice) } let(:retraction) { Retraction.for(post, alice) }

Some files were not shown because too many files have changed in this diff Show more