1 |
commit: 4fce395e1c09b2dfc3c41e5076f9aff32ec3bef8 |
2 |
Author: Alex Legler <alex <AT> a3li <DOT> li> |
3 |
AuthorDate: Sun Feb 20 23:56:25 2011 +0000 |
4 |
Commit: Alex Legler <a3li <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 20 23:56:25 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/glsamaker.git;a=commit;h=4fce395e |
7 |
|
8 |
Better fixtures |
9 |
|
10 |
--- |
11 |
test/fixtures/cve_assignments.yml | 2 -- |
12 |
test/fixtures/references.yml | 6 ++++++ |
13 |
test/fixtures/revisions.yml | 24 +++++++++++++++++++----- |
14 |
3 files changed, 25 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/test/fixtures/cve_assignments.yml b/test/fixtures/cve_assignments.yml |
17 |
index 2893341..fc3f7d3 100644 |
18 |
--- a/test/fixtures/cve_assignments.yml |
19 |
+++ b/test/fixtures/cve_assignments.yml |
20 |
@@ -4,8 +4,6 @@ |
21 |
# model remove the '{}' from the fixture names and add the columns immediately |
22 |
# below each fixture, per the syntax in the comments below |
23 |
# |
24 |
-one: {} |
25 |
# column: value |
26 |
# |
27 |
-two: {} |
28 |
# column: value |
29 |
|
30 |
diff --git a/test/fixtures/references.yml b/test/fixtures/references.yml |
31 |
index 5bf0293..826c663 100644 |
32 |
--- a/test/fixtures/references.yml |
33 |
+++ b/test/fixtures/references.yml |
34 |
@@ -1,5 +1,11 @@ |
35 |
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |
36 |
|
37 |
+reference_one: |
38 |
+ id: 1 |
39 |
+ revision_id: 2 |
40 |
+ title: Reference 1 Title |
41 |
+ url: http://reference-1-title.com/ref.html |
42 |
+ |
43 |
# one: |
44 |
# column: value |
45 |
# |
46 |
|
47 |
diff --git a/test/fixtures/revisions.yml b/test/fixtures/revisions.yml |
48 |
index 5bf0293..522f395 100644 |
49 |
--- a/test/fixtures/revisions.yml |
50 |
+++ b/test/fixtures/revisions.yml |
51 |
@@ -1,7 +1,21 @@ |
52 |
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |
53 |
|
54 |
-# one: |
55 |
-# column: value |
56 |
-# |
57 |
-# two: |
58 |
-# column: value |
59 |
+revision_one: |
60 |
+ id: 1 |
61 |
+ glsa_id: 1 |
62 |
+ revid: 0 |
63 |
+ user_id: 1 |
64 |
+ title: GLSA 1 |
65 |
+ access: remote |
66 |
+ severity: normal |
67 |
+ description: lol hi |
68 |
+ |
69 |
+revision_two: |
70 |
+ id: 2 |
71 |
+ glsa_id: 2 |
72 |
+ revid: 0 |
73 |
+ user_id: 1 |
74 |
+ title: GLSA 2 |
75 |
+ access: remote |
76 |
+ severity: high |
77 |
+ description: lol hi |
78 |
\ No newline at end of file |