summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2024-12-29 15:14:43 +0100
committerMarius Peter <marius.peter@tutanota.com>2024-12-29 15:14:43 +0100
commitbe2a93525069de2dfa3c23b0c23e7a9f7ad4c03d (patch)
treeb5493e9d35d024ce7be072ec2168b4a98ba0e63f /test/fixtures
First commit.
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/files/.keep0
-rw-r--r--test/fixtures/scores.yml11
-rw-r--r--test/fixtures/scoring_criteria.yml50
-rw-r--r--test/fixtures/tartiflettes.yml7
-rw-r--r--test/fixtures/users.yml9
5 files changed, 77 insertions, 0 deletions
diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/fixtures/files/.keep
diff --git a/test/fixtures/scores.yml b/test/fixtures/scores.yml
new file mode 100644
index 0000000..b71217b
--- /dev/null
+++ b/test/fixtures/scores.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ tartiflette: one
+ scoring_criterium: one
+ value: 1
+
+two:
+ tartiflette: two
+ scoring_criterium: two
+ value: 2
diff --git a/test/fixtures/scoring_criteria.yml b/test/fixtures/scoring_criteria.yml
new file mode 100644
index 0000000..e469210
--- /dev/null
+++ b/test/fixtures/scoring_criteria.yml
@@ -0,0 +1,50 @@
+# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ category: visuel
+ name: présence de la pastille
+
+two:
+ category: visuel
+ name: croûte dorée
+
+three:
+ category: visuel
+ name: lardons apparents
+
+
+four:
+ category: texture
+ name: Pommes de terre fondantes
+
+five:
+ category: texture
+ name: lardons grillés
+
+six:
+ category: texture
+ name: oignons biens cuits
+
+
+seven:
+ category: goût
+ name: Reblochon savoureux
+
+eight:
+ category: goût
+ name: lardons appétants
+
+nine:
+ category: goût
+ name: vin blanc équilibré
+
+
+ten:
+ category: special
+ name: on en reveut !
+eleven:
+ category: special
+ name: Quelqu'un cherche à dépasser les maestros...
+twelve:
+ category: special
+ name: on reconnaît la patte du tartifleur
diff --git a/test/fixtures/tartiflettes.yml b/test/fixtures/tartiflettes.yml
new file mode 100644
index 0000000..ad75608
--- /dev/null
+++ b/test/fixtures/tartiflettes.yml
@@ -0,0 +1,7 @@
+# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ scoring_id: 1
+
+two:
+ scoring_id: 2
diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml
new file mode 100644
index 0000000..0951563
--- /dev/null
+++ b/test/fixtures/users.yml
@@ -0,0 +1,9 @@
+<% password_digest = BCrypt::Password.create("password") %>
+
+one:
+ email_address: one@example.com
+ password_digest: <%= password_digest %>
+
+two:
+ email_address: two@example.com
+ password_digest: <%= password_digest %>
Copyright 2019--2025 Marius PETER