1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test
eileencodes becf1bcb1d Run railties generated app tests in test env
Running railties generated app tests in development env can cause unintended
consequences. The environments are different and tests aren't meant to be
run in development mode.

The changes to the generator exposed this issue where the random test
order in the generated apps could cause problems when those tests are
run in development mode.

Particularly we saw failures in `railties/test/application/rake_test.rb`
generated apps that used the scaffold to create applications and then
run the migration and immediately run the tests. The error we saw was
`ActiveRecord::RecordNotFound: Couldn't find User with 'id'=980190962`
and seemed to only occur if the destroy test ran first. I'm not entirely
sure _why_ this causes that error to be thrown but I believe it is
related to the environments being different.
2015-12-15 15:19:26 -05:00
..
application Run railties generated app tests in test env 2015-12-15 15:19:26 -05:00
commands Clarify the need to run command twice. 2015-12-07 20:36:22 +01:00
configuration Define the configuration at Active Support 2014-09-11 00:54:43 -03:00
fixtures
generators Update test generators to use ActionDispatch::IntegrationTest 2015-12-15 15:19:16 -05:00
isolation run against edge sass to eliminate circular require warnings 2015-09-30 07:42:58 -07:00
railties Internal test migrations use the private 'Current' version 2015-12-15 17:18:09 +10:30
test_unit Don't match specific line numbers in reporter tests. 2015-11-12 21:22:40 +01:00
abstract_unit.rb Revert "Leave all our tests as order_dependent! for now" 2015-03-06 04:38:54 +10:30
app_loader_test.rb Fix file name 2015-05-27 21:48:01 -03:00
backtrace_cleaner_test.rb
code_statistics_calculator_test.rb Revert "Merge pull request #22569 from seuros/remove-test-case" 2015-12-13 21:24:40 -05:00
code_statistics_test.rb bugfix CodeStatics#calculate_directory_statics when dir has source extension 2015-04-09 04:48:01 -03:00
engine_test.rb need to call super 2014-08-07 16:03:09 -07:00
env_helpers.rb Revert "Merge pull request #19404 from dmathieu/remove_rack_env" 2015-03-20 08:14:11 -07:00
generators_test.rb Cleaned up generators tests using internal assertion helper 2015-08-20 09:22:56 +05:30
initializable_test.rb
path_generation_test.rb override controller_class on the request 2015-08-24 15:18:29 -07:00
paths_test.rb Reload I18n locales in development 2015-08-10 00:17:49 +02:00
rack_logger_test.rb Fix incorrect unsubscription. 2014-07-11 16:38:26 +08:00
rails_info_controller_test.rb Revert "Merge pull request #22569 from seuros/remove-test-case" 2015-12-13 21:24:40 -05:00
rails_info_test.rb Remove unused code 2014-09-25 16:20:31 -03:00
version_test.rb Introduce Rails.gem_version 2014-03-05 12:37:38 -05:00