Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/functional/admin_annotations_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class AdminAnnotationsTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/admin_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class AdminControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/assay_types_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class AssayTypesControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/assays_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class AssaysControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/attributions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class AttributionsTest < ActionController::TestCase
# use SopsController, because attributions don't have their own controller
tests SopsController

fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/collection_items_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'minitest/mock'

class CollectionItemsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/collections_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'minitest/mock'

class CollectionsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/content_blobs_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require 'private_address_check'

class ContentBlobsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/countries_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class CountriesControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/data_files_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

class DataFilesControllerTest < ActionController::TestCase

fixtures :all

include AuthenticatedTestHelper
include RdfTestCases
Expand Down
1 change: 0 additions & 1 deletion test/functional/documents_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'minitest/mock'

class DocumentsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/events_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def test_title
assert_response :success
end

fixtures :all
test 'should destroy Event' do
assert_difference('Event.count', -1) do
delete :destroy, params: { id: events(:event_with_no_files) }
Expand Down
1 change: 0 additions & 1 deletion test/functional/extended_metadata_types_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
class ExtendedMetadataTypesControllerTest < ActionController::TestCase

include AuthenticatedTestHelper
fixtures :sample_attribute_types

test 'get form fields' do
cmt = FactoryBot.create(:simple_investigation_extended_metadata_type)
Expand Down
1 change: 0 additions & 1 deletion test/functional/favourite_groups_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class FavouriteGroupsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/favourites_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class FavouritesControllerTest < ActionController::TestCase
include AuthenticatedTestHelper
include FavouritesHelper

fixtures :users, :favourites, :projects, :people, :institutions, :saved_searches

def setup
@person = FactoryBot.create(:person)
Expand Down
1 change: 0 additions & 1 deletion test/functional/file_templates_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'minitest/mock'

class FileTemplatesControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/ga4gh/trs/v2/general_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Trs
module V2
class GeneralControllerTest < ActionController::TestCase
include AuthenticatedTestHelper
fixtures :users, :people

test 'should get service info' do
get :service_info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Trs
module V2
class ToolVersionsControllerTest < ActionController::TestCase
include AuthenticatedTestHelper
fixtures :users, :people

test 'should list workflow versions as tool versions' do
workflow = FactoryBot.create(:workflow, policy: FactoryBot.create(:public_policy))
Expand Down
1 change: 0 additions & 1 deletion test/functional/ga4gh/trs/v2/tools_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Trs
module V2
class ToolsControllerTest < ActionController::TestCase
include AuthenticatedTestHelper
fixtures :users, :people

test 'should not work if disabled' do
with_config_value(:ga4gh_trs_api_enabled, false) do
Expand Down
1 change: 0 additions & 1 deletion test/functional/help_attachments_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class HelpAttachmentsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/help_documents_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class HelpDocumentsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/help_images_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class HelpImagesControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/homes_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class HomesControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include HomesHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/human_diseases_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class HumanDiseasesControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/institutions_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class InstitutionsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/investigations_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class InvestigationsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
2 changes: 0 additions & 2 deletions test/functional/isa_assays_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require 'test_helper'

class ISAAssaysControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper

Expand Down
2 changes: 0 additions & 2 deletions test/functional/isa_studies_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require 'test_helper'

class ISAStudiesControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper

def setup
Expand Down
1 change: 0 additions & 1 deletion test/functional/model_images_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class ModelImagesControllerTest < ActionController::TestCase
fixtures :models, :users

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/models_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'minitest/mock'

class ModelsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/openbis_experiments_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'openbis_test_helper'

class OpenbisExperimentsControllerTest < ActionController::TestCase
#fixtures :all
include AuthenticatedTestHelper

def setup
Expand Down
1 change: 0 additions & 1 deletion test/functional/openbis_zamples_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include SharingFormTestHelper

class OpenbisZamplesControllerTest < ActionController::TestCase
#fixtures :all
include AuthenticatedTestHelper

def setup
Expand Down
1 change: 0 additions & 1 deletion test/functional/organisms_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class OrganismsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include RdfTestCases
Expand Down
1 change: 0 additions & 1 deletion test/functional/people_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class PeopleControllerTest < ActionController::TestCase
fixtures :people, :users, :projects, :work_groups, :group_memberships, :institutions, :roles

include AuthenticatedTestHelper
include ApplicationHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/personal_tags_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
class PersonalTagsTest < ActionController::TestCase
tests PeopleController

fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/placeholders_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'minitest/mock'

class PlaceholdersControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/projects_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class ProjectsControllerTest < ActionController::TestCase
include SharingFormTestHelper
include MockHelper

fixtures :all

def setup
login_as(FactoryBot.create(:admin))
Expand Down
2 changes: 0 additions & 2 deletions test/functional/publications_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

class PublicationsControllerTest < ActionController::TestCase

fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
include RdfTestCases
Expand Down
1 change: 0 additions & 1 deletion test/functional/publishing/batch_publishing_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
class BatchPublishingTest < ActionController::TestCase
tests PeopleController

fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/publishing/gatekeeper_publish_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
class GatekeeperPublishTest < ActionController::TestCase
tests PeopleController

fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/publishing/single_publishing_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
class SinglePublishingTest < ActionController::TestCase
tests DataFilesController

fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/sessions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class SessionsControllerTest < ActionController::TestCase
# Then, you can remove it from this and the units test.
include AuthenticatedTestHelper

fixtures :users, :people

test 'sessions#index redirects to session#new' do
get :index
Expand Down
1 change: 0 additions & 1 deletion test/functional/sharing/batch_sharing_change_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
class BatchSharingChangeTest < ActionController::TestCase
tests PeopleController

fixtures :all

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/site_announcements_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class SiteAnnouncementsControllerTest < ActionController::TestCase
fixtures :users, :people, :roles

include AuthenticatedTestHelper

Expand Down
1 change: 0 additions & 1 deletion test/functional/sops_annotation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class SopsAnnotationTest < ActionController::TestCase
include SharingFormTestHelper
include GeneralAuthorizationTestCases

fixtures :all

tests SopsController

Expand Down
1 change: 0 additions & 1 deletion test/functional/sops_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'minitest/mock'

class SopsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/strains_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class StrainsControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include RdfTestCases
Expand Down
1 change: 0 additions & 1 deletion test/functional/studies_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'

class StudiesControllerTest < ActionController::TestCase
fixtures :all

include AuthenticatedTestHelper
include SharingFormTestHelper
Expand Down
1 change: 0 additions & 1 deletion test/functional/tags_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
class TagsControllerTest < ActionController::TestCase
include AuthenticatedTestHelper

fixtures :all

def setup
login_as FactoryBot.create(:user, person: FactoryBot.create(:person))
Expand Down
Loading
Loading