rspec to test whether ruby method returns an array -
I have a method that gives an array. I need to use it RSPC is there any way with which we can check it:
def get_ids #### The subject of the IRS end .get_ids.should be_array < / Code>
or
results = subject .get_ids result. Should be an_instance_of (array)
Comments
Post a Comment