test/example_proxy_test.rb in surrounded-0.9.11 vs test/example_proxy_test.rb in surrounded-1.0.0

- old
+ new

@@ -64,11 +64,11 @@ } let(:task){ OpenStruct.new(name: 'GTD') } let(:context){ - ProxyContext.new(user, task) + ProxyContext.new(admin: user, task: task) } it 'proxys methods between objects and its interface' do assert_equal 'hello from Jim, the admin interface!', context.do_something end @@ -103,10 +103,10 @@ 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 + assert context.rebind(admin: 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