Announcement (2017-05-07): www.ruby-forum.com is now read-only since I
unfortunately do not have the time to support and maintain the forum any
more. Please see rubyonrails.org/community and ruby-lang.org/en/community
for other Rails- und Ruby-related community platforms.

Hello,
On 7 Μαϊ 2014, at 15:44 , Arup Rakshit <aruprakshit@rocketmail.com>
wrote:
> a = [1,2,43,54,6]> b = [6,77,11]> a.any? { |i| b.include i } # => true﻿
Here is a simple example:
----
> cat enum_spec.rb
require 'rspec'
RSpec.describe "Test enumerable" do
it "returns 'true'" do
a = [1,2,43,54,6]
b = [6,77,11]
expect(a.any? { |i| b.include? i}).to eq(true)
end
it "returns 'false'" do
a = [1,2,43,54]
b = [6,77,11]
expect(a.any? { |i| b.include? i}).to eq(false)
end
end
> rspec enum_spec.rb
..
Finished in 0.0009 seconds
2 examples, 0 failures
>
----
However, 'minitest'[1] is also very good testing framework with the
additional '+' that it comes with ruby by default. I've used both
minitest and rspec. I didn't notice any differences between the two at
core level. Rspec has a wide variety of additional gems and strong
community. Maybe more advanced users would like to point out some
differences between the two and when to use one over the other.
Regards
[1] https://github.com/seattlerb/minitest
Panagiotis (atmosx) Atmatzidis
email: atma@convalesco.org
URL: http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5
"As you set out for Ithaca, hope the voyage is a long one, full of
adventure, full of discovery [...]" - C. P. Cavafy