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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -