Sha256: 3c52eb648b34cd70944f358e763e8bc2fca62af0df25138ebdfd1f57d63610ab
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
class MethodMissingSpec def method_missing(method, *args) [method, args] end end describe "method_missing" do before do @object = MethodMissingSpec.new end it "should be called for all missing methods" do @object.foo.should == ['foo', []] @object.bar(10).should == ['bar', [10]] (@object.title = 100).should == ['title=', [100]] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.21 | test/opal/runtime/method_missing_spec.rb |