replaced == with eq method in specs