spec/plugin_spec.rb in roda-0.9.0 vs spec/plugin_spec.rb in roda-1.0.0
- old
+ new
@@ -13,13 +13,23 @@
super("a" + str)
end
end
self::RequestMethods = Module.new do
def hello(&block)
- on 'hello', &block
+ on self.class.hello, &block
end
end
+ self::RequestClassMethods = Module.new do
+ def hello(&block)
+ 'hello'
+ end
+ end
self::ResponseMethods = Module.new do
+ def foobar
+ self.class.foobar
+ end
+ end
+ self::ResponseClassMethods = Module.new do
def foobar
"Default "
end
end