test/example_proxy_test.rb in surrounded-0.9.5 vs test/example_proxy_test.rb in surrounded-0.9.6

- old
+ new

@@ -85,9 +85,13 @@ it 'is able to grab methods from the object' do assert_equal :talking_to_others, context.get_admin_method.name end + it 'allows Surrounded objects to interact with others' do + assert context.rebind(user: User.new('Surrounded'), task: task).talking + end + it 'works with frozen and primitive objects' do context.rebind(admin: "brrr".freeze, task: task) assert context.get_admin_method context.rebind(admin: nil, task: task) assert context.get_admin_method