On Thu, Jun 30, 2011 at 6:29 PM, Alex Katebi wrote:
>
> Using rspec version 2.6.4 I get an error with the Collection
> membership.
>
> Example: [1,2].should include(1)
The `include` method needs to be in an example for you to use it like
this. It won't work in irb unless you first `include RSpec:
Using rspec version 2.6.4 I get an error with the Collection
membership.
Example: [1,2].should include(1)
TypeError: wrong argument type Fixnum (expected Module)
from (irb):1:in `include'
from (irb):1
from /home/akatebi/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `'
RubyG