Change be_installed_by_gem to be_installed.by('gem')