id_please 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/id_please.gemspec +2 -2
- data/lib/id_please/model_extensions/for_subject.rb +20 -8
- data/test/debug.log +45824 -0
- data/test/roles_test.rb +3 -0
- metadata +2 -2
data/test/roles_test.rb
CHANGED
@@ -236,6 +236,7 @@ class RolesTest < ActiveSupport::TestCase
|
|
236
236
|
@user1.in_group!(@group2)
|
237
237
|
|
238
238
|
assert_same_elements @user1.groups, [@group1, @group2]
|
239
|
+
assert_same_elements_in_hash @user1.groups(:result => :hash), {@group1 => [@user1], @group2 => [@user1]}
|
239
240
|
assert_same_elements @group1.children, [@user1, @user2]
|
240
241
|
assert_equal @group2.children, [@user1]
|
241
242
|
|
@@ -278,6 +279,8 @@ class RolesTest < ActiveSupport::TestCase
|
|
278
279
|
should "handle nested groups" do
|
279
280
|
assert_same_elements @user1.groups(:nested => false), [@group1, @group3, @group4]
|
280
281
|
assert_same_elements @user1.groups, [@group1, @group2, @group3, @group4]
|
282
|
+
assert_same_elements_in_hash @user1.groups(:result => :hash), {@group1 => [@user1], @group2 => [@group1], @group3 => [@user1], @group4 => [@user1, @group2]}
|
283
|
+
|
281
284
|
assert_same_elements @user2.groups, [@group2, @group4]
|
282
285
|
|
283
286
|
assert_same_elements @group4.children, [@group2, @group1, @user1, @user2, @user3]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: id_please
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Stuart
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-03-01 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|