Skip to content

Instantly share code, notes, and snippets.

@mxrguspxrt
Created July 8, 2012 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxrguspxrt/3068814 to your computer and use it in GitHub Desktop.
Save mxrguspxrt/3068814 to your computer and use it in GitHub Desktop.
problem
class Class
def instance_advices(include_super=true)
throw :never_thrown
end
end
class Test1
end
class Test3 < Test1
end
Test1.should_receive(:instance_advices).and_return([1, 2, 3])
Test3.instance_advices.should eq [1, 2, 3]
Test3.instance_advices(true).should eq [1, 2, 3]
Test3.instance_advices(false).should eq []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment