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

mysql - How to enter php data into a html multiple select box -

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

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -