aboutsummaryrefslogtreecommitdiff
path: root/test/fixtures/things.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/things.yml')
-rw-r--r--test/fixtures/things.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/fixtures/things.yml b/test/fixtures/things.yml
new file mode 100644
index 0000000..069cf85
--- /dev/null
+++ b/test/fixtures/things.yml
@@ -0,0 +1,39 @@
+thing1:
+ target: 'target1'
+ title: 'This is a title 1'
+ publisher: 'Publisher 1'
+ authors: 'Miquel Sabaté, John Smith, Nom cognom1 cognom2, Nom _cognom3 cognom4_'
+ editors: false
+ address:
+ year: 2024
+ url: 'http://example.com'
+ location: 'Somewhere'
+ insideof: 'Some other thing'
+ pages: '22-24'
+ note: 'This is a note 1'
+ rate: 5
+ status: <%= Thing.statuses[:read] %>
+ kind: <%= Thing.kinds[:novel] %>
+ access: 2024-02-24 17:24:12
+ bought_at: 2024-02-24 17:24:12
+ user_id: <%= ActiveRecord::FixtureSet.identify(:user) %>
+
+thing2:
+ target: 'target2'
+ title: 'This is a 2'
+ publisher: 'Publisher 2'
+ authors: 'Miquel Sabaté, Nom'
+ editors: true
+ address: 'Address 2'
+ year: 2024
+ url: 'http://example.com'
+ location: 'Somewhere'
+ insideof: 'Some other thing'
+ pages: '22-24'
+ note: 'This is a note 2'
+ rate: 8
+ status: <%= Thing.statuses[:read] %>
+ kind: <%= Thing.kinds[:poetry] %>
+ access: 2024-02-24 17:24:12
+ bought_at: 2024-02-24 17:24:12
+ user_id: <%= ActiveRecord::FixtureSet.identify(:user) %>