Use factories for nodes in browse_helper tests.
[rails.git] / test / factories / node.rb
index 8daadd35ad074258da98c6c2050cabf7ce2ed0bb..1d8e244d760b741306d8ffb2254487897a56e991 100644 (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|