Forum: RSpec Simular to Include

Posted by Mattias A. (mattias_a)
on 2013-02-28 06:40
Hi,

I have array1 that contains several web address. Array2 contains the
expected endings of array1 values. How can I control that arrays2 values
is in array1?

I have tried array1.should include array2, but it requires that array1
and array2 is identical.


array1 = ["https://..../page.html, https://..../page1.html,
https://..../page3.html]

array2 = ["page.html", "page2.html", "page3.html", "page4.html"]

A big thanks in advance!

Regards
Mattias
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.