aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-09-11 21:43:03 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-09-12 08:14:10 +0900
commit1b128f89748c7cf12481684e473f7c884993055f (patch)
treea84b9c6f75aa71228265478d26e08a6e8be0a2f9 /activerecord/test/fixtures
parent7c3cc0902cfe00a0565c02c02d008c1ea75937ea (diff)
downloadrails-1b128f89748c7cf12481684e473f7c884993055f.tar.gz
rails-1b128f89748c7cf12481684e473f7c884993055f.tar.bz2
rails-1b128f89748c7cf12481684e473f7c884993055f.zip
remove duplicated fixture set names
If using namespaced fixtures, get following Ruby warning. ``` activerecord/lib/active_record/fixtures.rb:922: warning: method redefined; discarding old admin_foos activerecord/lib/active_record/fixtures.rb:922: warning: previous definition of admin_foos was here ``` This is happening because of the multiple set the same path when setting the fixture name. Fix to remove the duplicate path.
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r--activerecord/test/fixtures/all/namespaced/accounts.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/all/namespaced/accounts.yml b/activerecord/test/fixtures/all/namespaced/accounts.yml
new file mode 100644
index 0000000000..9e341a15af
--- /dev/null
+++ b/activerecord/test/fixtures/all/namespaced/accounts.yml
@@ -0,0 +1,2 @@
+signals37:
+ name: 37signals