summaryrefslogtreecommitdiffstats
path: root/test/unit/principal_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/principal_test.rb')
-rw-r--r--test/unit/principal_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb
index b37f781a3..3b599c373 100644
--- a/test/unit/principal_test.rb
+++ b/test/unit/principal_test.rb
@@ -23,7 +23,7 @@ class PrincipalTest < ActiveSupport::TestCase
fixtures :users, :projects, :members, :member_roles
def test_active_scope_should_return_groups_and_active_users
- result = Principal.active.all
+ result = Principal.active.to_a
assert_include Group.first, result
assert_not_nil result.detect {|p| p.is_a?(User)}
assert_nil result.detect {|p| p.is_a?(User) && !p.active?}