Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec'
- class Something
- def initialize
- do_something
- end
- def do_something
- raise NotImplementedError.new("Not Yet Implemented")
- end
- end
- describe "Something" do
- it "should pass this test but doesn't" do
- # so how do i stub do_something on any instance of Something
- end
- end
Add Comment
Please, Sign In to add comment