File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
activerecord/lib/active_record/railties Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ * Ignore file fixtures on ` db:fixtures:load `
2
+
3
+ * Kevin Sjöberg*
4
+
1
5
* Fix ActionController::Live controller test deadlocks by removing the body buffer size limit for tests.
2
6
3
7
* Dylan Thacker-Smith*
Original file line number Diff line number Diff line change @@ -385,8 +385,9 @@ db_namespace = namespace :db do
385
385
fixture_files = if ENV [ "FIXTURES" ]
386
386
ENV [ "FIXTURES" ] . split ( "," )
387
387
else
388
- # The use of String#[] here is to support namespaced fixtures.
389
- Dir [ "#{ fixtures_dir } /**/*.yml" ] . map { |f | f [ ( fixtures_dir . size + 1 ) ..-5 ] }
388
+ files = Dir [ File . join ( fixtures_dir , "**/*.{yml}" ) ]
389
+ files . reject! { |f | f . start_with? ( File . join ( fixtures_dir , "files" ) ) }
390
+ files . map! { |f | f [ fixtures_dir . to_s . size ..-5 ] . delete_prefix ( "/" ) }
390
391
end
391
392
392
393
ActiveRecord ::FixtureSet . create_fixtures ( fixtures_dir , fixture_files )
You can’t perform that action at this time.
0 commit comments