I am testing a random string generator that takes two arrays of words and then picks random ones from them. I need to be able to test that it actually is random. For instance:
FrostyMeadow.generate(:nouns => ["hello", "world"], :adjectives => ["hello","world"]
should generate one of the following strings:
["hello world", "world world", "world hello", "hello hello"]
Is there any way to give rspec that array and check if the generated string is in there?