test/surrounded_test.rb in surrounded-0.9.11 vs test/surrounded_test.rb in surrounded-1.0.0
- old
+ new
@@ -14,11 +14,11 @@
let(:jim){ User.new("Jim") }
let(:guille){ User.new("Guille") }
let(:external_user){ User.new("External User") }
let(:context){
- TestContext.new(jim, guille)
+ TestContext.new(user: jim, other_user: guille)
}
it "has access to objects in the context" do
assert context.access_other_object
end
@@ -44,11 +44,11 @@
}
thing.extend(Surrounded)
other = User.new('Guille')
- context = TestContext.new(thing, other)
+ context = TestContext.new(user: thing, other_user: other)
assert context.access_other_object
end
end
module SpecialSurrounding
@@ -59,6 +59,6 @@
it "allows the object to store its context" do
object = Array.new
object.extend(SpecialSurrounding)
assert object.respond_to?(:context, true)
end
-end
\ No newline at end of file
+end