spec/spec_helper.rb in celluloid-0.17.0 vs spec/spec_helper.rb in celluloid-0.17.1

- old
+ new

@@ -48,12 +48,12 @@ config.around do |ex| ex.run if @fake_logger.crashes? crashes = @fake_logger.crashes.map do |args, call_stack| msg, ex = *args - "\n** Crash: #{msg.inspect}(#{ex.inspect})\n Backtrace:\n (crash) #{call_stack * "\n (crash) " }"\ - "\n** Crash: \"Actor crashed!\"(#{ex.inspect})\n Backtrace:\n (crash) #{call_stack * "\n (crash) " }"\ + "\n** Crash: #{msg.inspect}(#{ex.inspect})\n Backtrace:\n (crash) #{call_stack * "\n (crash) "}"\ + "\n** Crash: \"Actor crashed!\"(#{ex.inspect})\n Backtrace:\n (crash) #{call_stack * "\n (crash) "}"\ "\n Exception Backtrace (#{ex.inspect}):\n (ex) #{ex.backtrace * "\n (ex) "}" end.join("\n") fail "Actor crashes occurred (please stub/mock if these are expected): #{crashes}" end @@ -78,10 +78,10 @@ ex.run Celluloid.shutdown end config.around actor_system: :within do |ex| - Celluloid::ActorSystem.new.within do + Celluloid::Actor::System.new.within do ex.run end end config.filter_gems_from_backtrace(*%w(rspec-expectations rspec-core rspec-mocks rspec-logsplit rubysl-thread rubysl-timeout))