I have a method which returns an array. I need to test it using rspec. Is there any method with which we can test like:
def get_ids
####returns array of ids
end
subject.get_ids.should be_array
or
result = subject.get_ids
result.should be an_instance_of(Array)
result.class.should eq Array