mardi 28 octobre 2014

rspec to test whether ruby method returns an array


Vote count:

0




I have a method which returns an array. I need to test it using rspec. SO is there any method which we can test like


def get_ids


returns array of ids

end


subject.get_ids.should be_array



asked 1 min ago







rspec to test whether ruby method returns an array

Aucun commentaire:

Enregistrer un commentaire