Browse files

Test if test/performance/browsing_test.rb exists when --skip-activere…

…cord is used

[#4104]
  • Loading branch information...
1 parent e695c40 commit e7f911d5ca58e83b94f58d5f44352794b27b2a10 @spastorino spastorino committed Oct 9, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/test/generators/app_generator_test.rb
View
1 railties/test/generators/app_generator_test.rb
@@ -168,6 +168,7 @@ def test_config_another_database
def test_config_database_is_not_added_if_skip_active_record_is_given
run_generator [destination_root, "--skip-active-record"]
assert_no_file "config/database.yml"
+ assert_file "test/performance/browsing_test.rb"
end
def test_active_record_is_removed_from_frameworks_if_skip_active_record_is_given

3 comments on commit e7f911d

@asanghi

I'm still just as confused about this since yesterday, why this particular assertion, mate? :)

@spastorino
Ruby on Rails member

Because patches provided here https://rails.lighthouseapp.com/projects/8994/tickets/4104 were creating an empty test/performance dir, so just in case ;)

@asanghi

Thanks Santiago, understood now. Yes, the patches earlier were indeed not correct.

Please sign in to comment.