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.
@@ -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.6.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-02-19 00:00:00 -05:00
12
+ date: 2010-03-01 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency