Commit adc64ef1 authored by Juan Manuel Solaro's avatar Juan Manuel Solaro
Browse files

(fix) change spec it_should_not_save_when_previous_activity to...

(fix) change spec it_should_not_save_when_previous_activity to it_should_save_when_previous_activity
parent 334bc6d5
Loading
Loading
Loading
Loading
+10 −2
Original line number Original line Diff line number Diff line
@@ -102,7 +102,7 @@ class CreateActivitySpec extends ObjectBehavior
            ->shouldReturn(true);
            ->shouldReturn(true);
    }
    }


    function it_should_not_save_when_previous_activity(
    function it_should_save_when_previous_activity(
        Blog $blog
        Blog $blog
    )
    )
    {
    {
@@ -118,8 +118,16 @@ class CreateActivitySpec extends ObjectBehavior
            ->shouldBeCalled()
            ->shouldBeCalled()
            ->willReturn(['activity1']);
            ->willReturn(['activity1']);


        $this->saveAction->setEntity(Argument::type(Activity::class))
        ->shouldBeCalled()
        ->willReturn($this->saveAction);

        $this->saveAction->save()
            ->shouldBeCalled()
            ->willReturn(true);

        $this
        $this
            ->save($blog)
            ->save($blog)
            ->shouldReturn(false);
            ->shouldReturn(true);
    }
    }
}
}