test/example_proxy_test.rb in surrounded-0.8.3 vs test/example_proxy_test.rb in surrounded-0.8.4
- old
+ new
@@ -12,10 +12,12 @@
interface :admin do
def some_admin_method
"hello from #{name}, the admin interface!"
end
end
+ wrap :task do
+ end
trigger :do_something do
admin.some_admin_method
end
@@ -27,9 +29,10 @@
admin.method_that_does_not_exist
end
end
ProxyUser = Struct.new(:name)
+ProxyUser.send(:include, Surrounded)
describe ProxyContext do
let(:user){
ProxyUser.new('Jim')
}
\ No newline at end of file