Revision 16788
Added by Jean-Philippe Lang almost 8 years ago
sandbox/rails-5.1/test/extra/redmine_pm/test_case.rb | ||
---|---|---|
23 | 23 |
|
24 | 24 |
# Cannot use transactional fixtures here: database |
25 | 25 |
# will be accessed from Redmine.pm with its own connection |
26 |
self.use_transactional_fixtures = false
|
|
26 |
self.use_transactional_tests = false
|
|
27 | 27 |
|
28 | 28 |
def test_dummy |
29 | 29 |
end |
sandbox/rails-5.1/test/functional/issues_controller_transaction_test.rb | ||
---|---|---|
44 | 44 |
:journal_details, |
45 | 45 |
:queries |
46 | 46 |
|
47 |
self.use_transactional_fixtures = false
|
|
47 |
self.use_transactional_tests = false
|
|
48 | 48 |
|
49 | 49 |
def setup |
50 | 50 |
User.current = nil |
sandbox/rails-5.1/test/functional/project_enumerations_controller_test.rb | ||
---|---|---|
29 | 29 |
:custom_fields_trackers, :custom_values, |
30 | 30 |
:time_entries |
31 | 31 |
|
32 |
self.use_transactional_fixtures = false
|
|
32 |
self.use_transactional_tests = false
|
|
33 | 33 |
|
34 | 34 |
def setup |
35 | 35 |
@request.session[:user_id] = nil |
sandbox/rails-5.1/test/ui/base.rb | ||
---|---|---|
77 | 77 |
# Stop ActiveRecord from wrapping tests in transactions |
78 | 78 |
# Transactional fixtures do not work with Selenium tests, because Capybara |
79 | 79 |
# uses a separate server thread, which the transactions would be hidden |
80 |
self.use_transactional_fixtures = false
|
|
80 |
self.use_transactional_tests = false
|
|
81 | 81 |
|
82 | 82 |
# Should not depend on locale since Redmine displays login page |
83 | 83 |
# using default browser locale which depend on system locale for "real" browsers drivers |
sandbox/rails-5.1/test/unit/attachment_test.rb | ||
---|---|---|
25 | 25 |
|
26 | 26 |
# TODO: remove this with Rails 5 that supports after_commit callbacks |
27 | 27 |
# in transactional fixtures (https://github.com/rails/rails/pull/18458) |
28 |
self.use_transactional_fixtures = false
|
|
28 |
self.use_transactional_tests = false
|
|
29 | 29 |
|
30 | 30 |
def setup |
31 | 31 |
set_tmp_attachments_directory |
sandbox/rails-5.1/test/unit/attachment_transaction_test.rb | ||
---|---|---|
23 | 23 |
fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles, |
24 | 24 |
:enabled_modules, :issues, :trackers, :attachments |
25 | 25 |
|
26 |
self.use_transactional_fixtures = false
|
|
26 |
self.use_transactional_tests = false
|
|
27 | 27 |
|
28 | 28 |
def setup |
29 | 29 |
set_tmp_attachments_directory |
sandbox/rails-5.1/test/unit/issue_nested_set_concurrency_test.rb | ||
---|---|---|
24 | 24 |
:issue_statuses, |
25 | 25 |
:enumerations |
26 | 26 |
|
27 |
self.use_transactional_fixtures = false
|
|
27 |
self.use_transactional_tests = false
|
|
28 | 28 |
|
29 | 29 |
def setup |
30 | 30 |
skip if sqlite? |
sandbox/rails-5.1/test/unit/issue_transaction_test.rb | ||
---|---|---|
27 | 27 |
:custom_fields, :custom_fields_projects, :custom_fields_trackers, :custom_values, |
28 | 28 |
:time_entries |
29 | 29 |
|
30 |
self.use_transactional_fixtures = false
|
|
30 |
self.use_transactional_tests = false
|
|
31 | 31 |
|
32 | 32 |
def test_invalid_move_to_another_project |
33 | 33 |
lft1 = new_issue_lft |
sandbox/rails-5.1/test/unit/project_nested_set_concurrency_test.rb | ||
---|---|---|
18 | 18 |
require File.expand_path('../../test_helper', __FILE__) |
19 | 19 |
|
20 | 20 |
class ProjectNestedSetConcurrencyTest < ActiveSupport::TestCase |
21 |
self.use_transactional_fixtures = false
|
|
21 |
self.use_transactional_tests = false
|
|
22 | 22 |
|
23 | 23 |
def setup |
24 | 24 |
CustomField.delete_all |
Also available in: Unified diff
Use #use_transactional_tests= instead of #use_transactional_fixtures=.