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

- old
+ new

@@ -1,10 +1,10 @@ require 'test_helper' describe Surrounded::Context, 'reusing context object' do let(:user){ User.new("Jim") } let(:other_user){ User.new("Guille") } - let(:context){ TestContext.new(user, other_user) } + let(:context){ TestContext.new(user: user, other_user: other_user) } it 'allows rebinding new players' do expect(context.access_other_object).must_equal 'Guille' context.rebind(user: User.new('Amy'), other_user: User.new('Elizabeth')) expect(context.access_other_object).must_equal 'Elizabeth' \ No newline at end of file