I have the below code :

class Foo
  def intialize
    #
  end

  def meth
    OpenStruct.new(val : meth1, val: meth2)
  end

  private

  def meth1
    #..
  end

  def meth2
    #..
  end
end

How can I stub those 2 private methods *meth1* and *meth2*.  *should*
wouldn't work for me, as mentioned here -
http://stackoverflow.com/questions/14987141/rspec-stub-private-method

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/CAKxHnE1pcqwjoFukaqX9BymAyF_xGhm_GiUeOgk6DnqMg1zHqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to