public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/glsamaker:master commit in: test/fixtures/
@ 2011-02-25 19:43 Alex Legler
  0 siblings, 0 replies; only message in thread
From: Alex Legler @ 2011-02-25 19:43 UTC (permalink / raw
  To: gentoo-commits

commit:     4fce395e1c09b2dfc3c41e5076f9aff32ec3bef8
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 20 23:56:25 2011 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 20 23:56:25 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/glsamaker.git;a=commit;h=4fce395e

Better fixtures

---
 test/fixtures/cve_assignments.yml |    2 --
 test/fixtures/references.yml      |    6 ++++++
 test/fixtures/revisions.yml       |   24 +++++++++++++++++++-----
 3 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/test/fixtures/cve_assignments.yml b/test/fixtures/cve_assignments.yml
index 2893341..fc3f7d3 100644
--- a/test/fixtures/cve_assignments.yml
+++ b/test/fixtures/cve_assignments.yml
@@ -4,8 +4,6 @@
 # model remove the '{}' from the fixture names and add the columns immediately
 # below each fixture, per the syntax in the comments below
 #
-one: {}
 # column: value
 #
-two: {}
 #  column: value

diff --git a/test/fixtures/references.yml b/test/fixtures/references.yml
index 5bf0293..826c663 100644
--- a/test/fixtures/references.yml
+++ b/test/fixtures/references.yml
@@ -1,5 +1,11 @@
 # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
 
+reference_one:
+  id: 1
+  revision_id: 2
+  title: Reference 1 Title
+  url: http://reference-1-title.com/ref.html
+
 # one:
 #   column: value
 #

diff --git a/test/fixtures/revisions.yml b/test/fixtures/revisions.yml
index 5bf0293..522f395 100644
--- a/test/fixtures/revisions.yml
+++ b/test/fixtures/revisions.yml
@@ -1,7 +1,21 @@
 # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
 
-# one:
-#   column: value
-#
-# two:
-#   column: value
+revision_one:
+  id: 1
+  glsa_id: 1
+  revid: 0
+  user_id: 1
+  title: GLSA 1
+  access: remote
+  severity: normal
+  description: lol hi
+
+revision_two:
+  id: 2
+  glsa_id: 2
+  revid: 0
+  user_id: 1
+  title: GLSA 2
+  access: remote
+  severity: high
+  description: lol hi
\ No newline at end of file



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-25 19:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 19:43 [gentoo-commits] proj/glsamaker:master commit in: test/fixtures/ Alex Legler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox