Skip to content

Commit

Permalink
Ensure "super" is called in any test setup/teardown methods.
Browse files Browse the repository at this point in the history
This ensures that any setup/teardown tasks inherited from other modules
properly get called.
  • Loading branch information
GUI committed Jan 29, 2017
1 parent ed0dec1 commit b163093
Show file tree
Hide file tree
Showing 192 changed files with 192 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/admin_ui/test_admins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestAdmins < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_api_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestApiUsers < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_api_users_allowed_ips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestApiUsersAllowedIps < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_api_users_allowed_referers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestApiUsersAllowedReferers < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_api_users_api_key_visibility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestApiUsersApiKeyVisibility < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_api_users_rate_limits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestApiUsersRateLimits < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_api_users_welcome_email.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Test::AdminUi::TestApiUsersWelcomeEmail < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::DelayedJob

def setup
super
setup_server

response = Typhoeus.delete("http://127.0.0.1:13103/api/v1/messages")
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_api_users_xss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestApiUsersXss < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_apis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestApis < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server

Api.delete_all
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_apis_reordering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestApisReordering < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server

Api.delete_all
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_config_publish_pending.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Test::AdminUi::TestConfigPublishPending < Minitest::Capybara::Test
include Minitest::Hooks

def setup
super
setup_server
Api.delete_all
WebsiteBackend.delete_all
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_config_publish_submit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Test::AdminUi::TestConfigPublishSubmit < Minitest::Capybara::Test
include Minitest::Hooks

def setup
super
setup_server
Api.delete_all
WebsiteBackend.delete_all
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_datatables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestDatatables < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_elasticsearch_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestElasticsearchProxy < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_legacy_redirects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestLegacyRedirects < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server

ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_locales.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Test::AdminUi::TestLocales < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestLogin < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Admin.where(:registration_source.ne => "seed").delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_noscript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestNoscript < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_page_title.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestPageTitle < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_roles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestRoles < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_stats_drilldown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestStatsDrilldown < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
end
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_stats_logs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestStatsLogs < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
end
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_stats_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestStatsMap < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
end
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_stats_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestStatsUsers < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
end
Expand Down
1 change: 1 addition & 0 deletions test/admin_ui/test_version_display.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::AdminUi::TestVersionDisplay < Minitest::Capybara::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
@expected_version = File.read(File.join(API_UMBRELLA_SRC_ROOT, "src/api-umbrella/version.txt")).strip
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/admin/stats/test_logs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::Admin::Stats::TestLogs < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/admin/stats/test_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::Admin::Stats::TestMap < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/admin/stats/test_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::Admin::Stats::TestSearch < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/admin/test_auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::Admin::TestAuth < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/admin_groups/test_admin_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::Apis::V1::AdminGroups::TestAdminPermissions < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
AdminGroup.delete_all
ApiScope.delete_all
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/admin_groups/test_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::AdminGroups::TestIndex < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
AdminGroup.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/admin_groups/test_show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::AdminGroups::TestShow < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
AdminGroup.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/admin_permissions/test_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::AdminPermissions::TestIndex < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/admins/test_admin_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::Apis::V1::Admins::TestAdminPermissions < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Admin.where(:registration_source.ne => "seed").delete_all
AdminGroup.delete_all
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/admins/test_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Admins::TestCreate < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Admin.where(:registration_source.ne => "seed").delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/admins/test_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Admins::TestIndex < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Admin.where(:registration_source.ne => "seed").delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/analytics/test_drilldown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Analytics::TestDrilldown < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ElasticsearchHelper.clean_es_indices(["2014-11", "2015-01", "2015-03"])
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/api_scopes/test_admin_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::Apis::V1::ApiScopes::TestAdminPermissions < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
ApiScope.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_admin_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::Apis::V1::Apis::TestAdminPermissions < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_create_sort_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestCreateSortOrder < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_destroy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestDestroy < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestIndex < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_move_after.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestMoveAfter < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_role_permissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestRolePermissions < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_save_embedded_headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestSaveEmbeddedHeaders < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_save_embedded_presence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestSaveEmbeddedPresence < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_save_embedded_yaml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestSaveEmbeddedYaml < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_save_host_validations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Test::Apis::V1::Apis::TestSaveHostValidations < Minitest::Test
parallelize_me!

def setup
super
setup_server
end

Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestShow < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
1 change: 1 addition & 0 deletions test/apis/v1/apis/test_update_custom_rate_limits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Test::Apis::V1::Apis::TestUpdateCustomRateLimits < Minitest::Test
include ApiUmbrellaTestHelpers::Setup

def setup
super
setup_server
Api.delete_all
end
Expand Down
Loading

0 comments on commit b163093

Please sign in to comment.