schematic 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,6 +43,10 @@ module Schematic
43
43
  added_elements[name] = nil
44
44
  end
45
45
  end
46
+
47
+ def method_missing(method, *args, &block)
48
+ @klass.send method, *args, &block
49
+ end
46
50
  end
47
51
  end
48
52
  end
@@ -1,3 +1,3 @@
1
1
  module Schematic
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -49,5 +49,19 @@ describe Schematic::Generator::Sandbox do
49
49
  end
50
50
  end
51
51
  end
52
+
53
+ describe "methods on original object get called when not difined in sandbox module" do
54
+ before do
55
+ klass.stub(:foo)
56
+ end
57
+
58
+ it "should delegate missing methods to klass" do
59
+ klass.should_receive(:foo)
60
+
61
+ subject.run do
62
+ self.foo
63
+ end
64
+ end
65
+ end
52
66
  end
53
67
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: schematic
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Case Commons, LLC
@@ -156,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- hash: -3764245537010144539
159
+ hash: -2689191166549575176
160
160
  segments:
161
161
  - 0
162
162
  version: "0"
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
- hash: -3764245537010144539
168
+ hash: -2689191166549575176
169
169
  segments:
170
170
  - 0
171
171
  version: "0"