Permalink
Browse files

Get rid of needless wrapper method in spec

  • Loading branch information...
1 parent 3a088bc commit 793844d38071042be3327c8884eb8d304b6c9c0e @tarcieri tarcieri committed Oct 24, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −5 spec/celluloid/actor_spec.rb
@@ -26,10 +26,6 @@ def greet
"Hi, I'm #{@name}"
end
- def this_actor
- Celluloid.current_actor
- end
-
def run(*args)
yield(*args)
end
@@ -158,7 +154,7 @@ def to_s
context :current_actor do
it "knows the current actor" do
actor = MyActor.new "Roger Daltrey"
- actor.this_actor.should == actor
+ actor.current_actor.should == actor
end
it "raises NotActorError if called outside an actor" do

0 comments on commit 793844d

Please sign in to comment.