Skip to content

Instantly share code, notes, and snippets.

@neilmock
Created May 1, 2009 13:48
Show Gist options
  • Save neilmock/105050 to your computer and use it in GitHub Desktop.
Save neilmock/105050 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment