aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/other_books.yml
diff options
context:
space:
mode:
authorRafael França <rafael@franca.dev>2019-07-27 21:12:06 -0400
committerGitHub <noreply@github.com>2019-07-27 21:12:06 -0400
commit481714dd0605a1e639cb6a60a2ea5aedf98cfe29 (patch)
treee75a2f50a7f7291502558b07ccfb6810a9e31980 /activerecord/test/fixtures/other_books.yml
parent2e9176c04a9e167efc15f904fd52ab793a29b931 (diff)
parentc09a4fd23d7d52552132edde7ad155f366c560b8 (diff)
downloadrails-481714dd0605a1e639cb6a60a2ea5aedf98cfe29.tar.gz
rails-481714dd0605a1e639cb6a60a2ea5aedf98cfe29.tar.bz2
rails-481714dd0605a1e639cb6a60a2ea5aedf98cfe29.zip
Merge pull request #36303 from gaotongfei/feature/ignore-specified-fixtures
Allow specifying fixtures to be ignored in "_fixture" section
Diffstat (limited to 'activerecord/test/fixtures/other_books.yml')
-rw-r--r--activerecord/test/fixtures/other_books.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/other_books.yml b/activerecord/test/fixtures/other_books.yml
new file mode 100644
index 0000000000..62806c03d7
--- /dev/null
+++ b/activerecord/test/fixtures/other_books.yml
@@ -0,0 +1,26 @@
+_fixture:
+ model_class: Book
+ ignore:
+ - PUBLISHED
+ - PUBLISHED_PAPERBACK
+ - PUBLISHED_EBOOK
+
+PUBLISHED: &PUBLISHED
+ status: :published
+
+PUBLISHED_PAPERBACK: &PUBLISHED_PAPERBACK
+ <<: *PUBLISHED
+ format: "paperback"
+ language: :english
+
+PUBLISHED_EBOOK: &PUBLISHED_EBOOK
+ <<: *PUBLISHED
+ format: "ebook"
+
+awdr:
+ <<: *PUBLISHED_PAPERBACK
+ name: "Agile Web Development with Rails"
+
+rfr:
+ <<: *PUBLISHED_EBOOK
+ name: "Ruby for Rails"