aboutsummaryrefslogtreecommitdiff
path: root/test/fixtures/things.yml
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-13 18:03:43 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-13 18:03:43 +0100
commita7791635aa98f012d35f97c3c5288494bbb28e38 (patch)
treebad987e6b4d10ad2f7cd02e40658d464907595ee /test/fixtures/things.yml
downloadoperum-a7791635aa98f012d35f97c3c5288494bbb28e38.tar.gz
operum-a7791635aa98f012d35f97c3c5288494bbb28e38.zip
Initial commit
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
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) %>