Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get rid of needless wrapper method in spec

  • Loading branch information...
commit 793844d38071042be3327c8884eb8d304b6c9c0e 1 parent 3a088bc
@tarcieri tarcieri authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 spec/celluloid/actor_spec.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.