projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b7ab31
)
Add the closed trait to changeset factories.
author
Andy Allan
<git@gravitystorm.co.uk>
Fri, 31 Mar 2017 09:47:28 +0000
(10:47 +0100)
committer
Andy Allan
<git@gravitystorm.co.uk>
Fri, 31 Mar 2017 09:47:41 +0000
(10:47 +0100)
test/factories/changesets.rb
patch
|
blob
|
history
diff --git
a/test/factories/changesets.rb
b/test/factories/changesets.rb
index f76b73126d0374eed28f9eb0a9d03138571bf4f0..01d3571981e5db09cd77b1ce71ff3af9cf42030b 100644
(file)
--- a/
test/factories/changesets.rb
+++ b/
test/factories/changesets.rb
@@
-4,5
+4,10
@@
FactoryGirl.define do
closed_at Time.now.utc + 1.day
user
+
+ trait :closed do
+ created_at Time.now.utc - 5.hours
+ closed_at Time.now.utc - 4.hours
+ end
end
end