From ed89ed2af01f26775121e422fd4f099d026fb2de Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 26 Feb 2015 00:20:09 +0100 Subject: [PATCH] Improved test. --- test/unit/session_collections_test.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/test/unit/session_collections_test.rb b/test/unit/session_collections_test.rb index 88706dd6e..c478329a2 100644 --- a/test/unit/session_collections_test.rb +++ b/test/unit/session_collections_test.rb @@ -42,13 +42,14 @@ class SessionCollectionsTest < ActiveSupport::TestCase roles = Role.where( :name => [ 'Customer'] ) customer1 = User.create_or_update( - :login => 'session-collections-customer-1', - :firstname => 'Session', - :lastname => 'collections 2', - :email => 'session-collections-customer-1@example.com', - :password => 'customerpw', - :active => true, - :roles => roles, + :login => 'session-collections-customer-1', + :firstname => 'Session', + :lastname => 'collections 2', + :email => 'session-collections-customer-1@example.com', + :password => 'customerpw', + :organization_id => nil, + :active => true, + :roles => roles, ) customer1.roles = roles customer1.save