Commit 9ec7a43a015327676983b0d287866d0fa9665e5d

Authored by Rodrigo Souto
1 parent 1b487cdf

[stoa] Making create_user factory activate the user

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
test/factories.rb
@@ -112,6 +112,7 @@ module Noosfero::Factory @@ -112,6 +112,7 @@ module Noosfero::Factory
112 fast_update(person, {:home_page_id => homepage.id}) 112 fast_update(person, {:home_page_id => homepage.id})
113 box = fast_insert(Box, { :owner_type => "Profile", :owner_id => person.id, :position => 1}) 113 box = fast_insert(Box, { :owner_type => "Profile", :owner_id => person.id, :position => 1})
114 block = fast_insert(Block, { :box_id => box.id, :type => 'MainBlock', :position => 0}) 114 block = fast_insert(Block, { :box_id => box.id, :type => 'MainBlock', :position => 0})
  115 + user.activate
115 user 116 user
116 end 117 end
117 118