Skip to content

Commit

Permalink
rearrange spec to reflect codebase changes, and revert deprecated tes…
Browse files Browse the repository at this point in the history
…t which needs to test the old API
  • Loading branch information
digitalextremist committed Aug 4, 2015
1 parent 7e2b572 commit edef34b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions spec/deprecate/actor_system_spec.rb
@@ -1,19 +1,19 @@
RSpec.describe "Deprecated Celluloid::Actor::System" do
subject { Celluloid::Actor::System.new }
RSpec.describe "Deprecated Celluloid::ActorSystem" do
subject { Celluloid::ActorSystem.new }

class DeprecatedTestActor
include Celluloid
end

it "supports non-global Actor::System" do
it "supports non-global ActorSystem" do
subject.within do
expect(Celluloid.actor_system).to eq(subject)
end
end

it "starts default actors" do
subject.start
expect(subject.registered).to eq(Celluloid::Actor::System::ROOT_SERVICES.map { |r| r[:as] })
expect(subject.registered).to eq(Celluloid::ActorSystem::ROOT_SERVICES.map { |r| r[:as] })
subject.shutdown
end

Expand Down

0 comments on commit edef34b

Please sign in to comment.