spec/actor/actor_spec.rb in game_machine-0.0.10 vs spec/actor/actor_spec.rb in game_machine-0.0.11

- old
+ new

@@ -25,17 +25,17 @@ expect(Actor::Base.aspects.first).to eq(aspect) end it "registeres the class in the system manager" do Actor::Base.aspect(aspect) - expect(Application.registered.include?(Actor::Base)).to be_true + expect(Application.registered.include?(Actor::Base)).to be_truthy end end describe "#sender" do it "returns an actor ref" do - subject.sender.should be_kind_of(Actor::Ref) + expect(subject.sender).to be_kind_of(Actor::Ref) end end describe "#find_distributed" do it "should return ref with correctly formatted path" do @@ -47,24 +47,24 @@ end describe "#find_remote" do it "should return ref with correctly formatted path" do actor_ref = GameSystems::LocalEcho.find_remote('default','test') - actor_ref.path.match(/akka.tcp:\/\/cluster@localhost:2551\/user\/test/).should be_true + expect(actor_ref.path.match(/akka.tcp:\/\/cluster@localhost:2551\/user\/test/)).to be_truthy end end describe "#find" do it "should return ref with correctly formatted path" do actor_ref = GameSystems::LocalEcho.find('test') - actor_ref.path.match(/\/user\/test/).should be_true + expect(actor_ref.path.match(/\/user\/test/)).to be_truthy end end describe "#add_hashring" do it "adds the hashring and returns it" do expect(Actor::Base.add_hashring('test','ring')).to eq(Actor::Base.hashring('test')) - Actor::Base.hashring('test').should == 'ring' + expect(Actor::Base.hashring('test')).to eq('ring') end end end end