aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-11-21 14:57:25 +0100
committerYves Senn <yves.senn@gmail.com>2014-11-21 14:57:25 +0100
commitf766abd4cf3eb75469d3646cfb6d85e668c619f3 (patch)
treeef90237445890a0c5bcb6486179c531e9569f77d /activerecord/test/fixtures
parent8613b31627fc551dbf637bbe9c5c363f84a3ebea (diff)
downloadrails-f766abd4cf3eb75469d3646cfb6d85e668c619f3.tar.gz
rails-f766abd4cf3eb75469d3646cfb6d85e668c619f3.tar.bz2
rails-f766abd4cf3eb75469d3646cfb6d85e668c619f3.zip
make it possible to access fixtures excluded by a `default_scope`.
Prior to this patch you'd end up with an error like: ``` ActiveRecord::RecordNotFound: Couldn't find <Model> with 'id'=<id> [WHERE (<default_scope condition>)] ```
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r--activerecord/test/fixtures/bulbs.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/bulbs.yml b/activerecord/test/fixtures/bulbs.yml
new file mode 100644
index 0000000000..e5ce2b796c
--- /dev/null
+++ b/activerecord/test/fixtures/bulbs.yml
@@ -0,0 +1,5 @@
+defaulty:
+ name: defaulty
+
+special:
+ name: special