Skip to content

Commit

Permalink
Initial use_mailbox specs
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Jul 24, 2012
1 parent 0ccdc79 commit a8ad3f1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/support/actor_examples.rb
Expand Up @@ -589,4 +589,19 @@ def unblock
actor.tasks.size.should == 1
end
end

context :use_mailbox do
subject do
class MyMailbox < Celluloid::Mailbox; end

Class.new do
include included_module
use_mailbox MyMailbox
end
end

it "uses user-specified mailboxes" do
subject.new.mailbox.should be_a MyMailbox
end
end
end

0 comments on commit a8ad3f1

Please sign in to comment.