में आरएसपीसी उम्मीदों का उपयोग कैसे करें I irb में [1,2,3].should include(1)
का उपयोग करना चाहते हैं। मैंने कोशिश की:irb
~$ irb
1.9.3p362 :001 > require 'rspec/expectations'
=> true
1.9.3p362 :002 > include RSpec::Matchers
=> Object
1.9.3p362 :003 > [1,2,3].should include(1)
TypeError: wrong argument type Fixnum (expected Module)
from (irb):3:in `include'
from (irb):3
from /home/andrey/.rvm/rubies/ruby-1.9.3-p362/bin/irb:16:in `<main>'
लेकिन यह it's a valid case हालांकि काम नहीं करता है। मैं [1,2,3].should include(1)
का उपयोग कैसे कर सकता हूं?