Use factories for nodes in browse_helper tests.

This commit is contained in:
Andy Allan 2017-03-30 13:19:15 +01:00
parent 5a0ba2e812
commit 17e9bcd2d4
2 changed files with 82 additions and 57 deletions

View file

@ -9,6 +9,10 @@ FactoryGirl.define do
timestamp Time.now
version 1
trait :deleted do
visible false
end
trait :with_history do
after(:create) do |node, _evaluator|
(1..node.version).each do |n|