Guest User

Untitled

a guest
Mar 5th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. require 'spec'
  2.  
  3. class Something
  4. def initialize
  5. do_something
  6. end
  7.  
  8. def do_something
  9. raise NotImplementedError.new("Not Yet Implemented")
  10. end
  11. end
  12.  
  13. describe "Something" do
  14. it "should pass this test but doesn't" do
  15. # so how do i stub do_something on any instance of Something
  16. end
  17. end
Add Comment
Please, Sign In to add comment