# Assert2 0.3.2 and ActiveSupport 2.1.2

**URL:** <https://www.ruby-forum.com/t/assert2-0-3-2-and-activesupport-2-1-2/153269>\
**Category:** Rails\
**Created:** [November 14, 2008, 6:43am UTC](https://www.ruby-forum.com/t/assert2-0-3-2-and-activesupport-2-1-2/153269 "2008-11-14T06:43:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffrey\_LSTaylor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee7513/32.png) [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Post date:** [November 14, 2008, 6:43am UTC](https://www.ruby-forum.com/t/assert2-0-3-2-and-activesupport-2-1-2/153269/1 "2008-11-14T06:43:07Z")

</div>

I’ve found a conflict between assert2 and ActiveSupport. Both define  
the  
method in\_groups\_of() with different signatures and semantics. It shows  
up in  
Ultrasphinx when I run my tests. I’ve reproduced it in the console, see  
below. Any suggests on how to force the desired in\_groups\_of() method?

TIA,  
Jeffrey

> script/console  
> Loading development environment (Rails 2.1.2)
> 
> > a = [1, 2, 3, 4]  
> > =\> [1, 2, 3, 4]
> 
> > a.in\_groups\_of(2)  
> > =\> [[1, 2], [3, 4]]
> 
> > require ‘assert2’  
> > =\> [“Assert\_2\_0”]
> 
> > a.in\_groups\_of(2)  
> > LocalJumpError: no block given  
> > from /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
> > `each_slice' from /usr/lib/ruby/gems/1.8/gems/assert2-0.3.1/lib/ruby_reflector.rb:829:in`each’  
> > from  
> > /usr/lib/ruby/gems/1.8/gems/assert2-0.3.1/lib/ruby\_reflector.rb:829:in  
> > `each_slice' from /usr/lib/ruby/gems/1.8/gems/assert2-0.3.1/lib/ruby_reflector.rb:829:in`in\_groups\_of’  
> > from (irb):4
