use #super from #method_missing instead of method aliasing
This commit is contained in:
1 parent
533ee9c16c
commit
92a9982988
2 files changed
+2
-4
No files matched your search
@@ -249,8 +249,7 @@ module Rscons
|
||||
describe "#method_missing" do
|
||||
it "calls the original method missing when the target method is not a known builder" do
|
||||
env = Environment.new
|
||||
env.should_receive(:orig_method_missing).with(:foobar)
|
||||
env.foobar
|
||||
expect {env.foobar}.to raise_error /undefined method .foobar./
|
||||
end
|
||||
|
||||
it "records the target when the target method is a known builder" do
|
||||
|
||||
Reference in new issue
Block a user