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 -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -