Commit fa71af71 authored by Justin Ramos's avatar Justin Ramos Committed by Benjamin Neff
Browse files

require spec_helper in .rspec

closes #7223
parent 9f88850f
......@@ -3,3 +3,4 @@
--color
--tag ~performance
--order random
--require spec_helper
......@@ -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)
* 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)
* Require spec\_helper in .rspec [#7223](https://github.com/diaspora/diaspora/pull/7223)
## Bug fixes
* Fix fetching comments after fetching likes [#7167](https://github.com/diaspora/diaspora/pull/7167)
......
require "spec_helper"
describe "ensure configuration effects" do
it "sets the captcha length as required" do
expect(SimpleCaptcha.length).to eq(AppConfig.settings.captcha.captcha_length.to_i)
......
require "spec_helper"
describe Admin::PodsController, type: :controller do
before do
@user = FactoryGirl.create :user
......
require 'spec_helper'
describe Admin::UsersController, :type => :controller do
before do
@user = FactoryGirl.create :user
......
......@@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe AdminsController, :type => :controller do
before do
@user = FactoryGirl.create :user
......
require "spec_helper"
describe Api::OpenidConnect::AuthorizationsController, type: :controller do
let!(:client) { FactoryGirl.create(:o_auth_application) }
let!(:client_with_xss) { FactoryGirl.create(:o_auth_application_with_xss) }
......
require "spec_helper"
describe Api::OpenidConnect::ClientsController, type: :controller, suppress_csrf_verification: :none do
describe "#create" do
context "when valid parameters are passed" do
......
require "spec_helper"
describe Api::OpenidConnect::DiscoveryController, type: :controller do
describe "#webfinger" do
before do
......
require "spec_helper"
describe Api::OpenidConnect::IdTokensController, type: :controller do
describe "#jwks" do
before do
......
require "spec_helper"
describe Api::OpenidConnect::TokenEndpointController, type: :controller, suppress_csrf_verification: :none do
let(:auth) { FactoryGirl.create(:auth_with_read) }
......
require "spec_helper"
describe Api::OpenidConnect::UserApplicationsController, type: :controller do
before do
@app = FactoryGirl.create(:o_auth_application_with_xss)
......
......@@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe ApplicationController, :type => :controller do
controller do
def index
......
......@@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require "spec_helper"
describe AspectMembershipsController, type: :controller do
before do
@aspect0 = alice.aspects.first
......
......@@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe AspectsController, :type => :controller do
before do
alice.getting_started = false
......
require 'spec_helper'
describe BlocksController, :type => :controller do
before do
sign_in alice
......
......@@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe CommentsController, :type => :controller do
before do
allow(@controller).to receive(:current_user).and_return(alice)
......
......@@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe ContactsController, :type => :controller do
before do
sign_in bob, scope: :user
......
......@@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe ConversationVisibilitiesController, :type => :controller do
before do
@user1 = alice
......
......@@ -2,8 +2,6 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe ConversationsController, :type => :controller do
before do
sign_in alice, scope: :user
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment