Hi I would like to test very simple method in Laravel 4.1. I am starting with tests in laravel and I would appreciate a little help here.
I am using phpspec..
Here is method:
public function hasTag($codename)
{
$tag = $this->tags()->where('codename', '=', $codename)->first();
if (is_null($tag))
{
return false;
}
return true;
}