spec/command/plugins_helper_spec.rb in cocoapods-plugins-0.2.0 vs spec/command/plugins_helper_spec.rb in cocoapods-plugins-0.3.0
- old
+ new
@@ -8,11 +8,11 @@
it 'downloads the json file' do
stub_plugins_json_request
json = Command::PluginsHelper.download_json
json.should.not.be.nil?
- json.should.be.kind_of? Hash
+ json.should.be.is_a? Hash
json['plugins'].size.should.eql? 3
end
it 'handles empty/bad JSON' do
stub_plugins_json_request 'This is not JSON'
@@ -28,12 +28,7 @@
should.raise(Pod::Informative) do
Command::PluginsHelper.download_json
end.message.should.match(expected_error)
end
- it 'detects if a gem is installed' do
- Helper = Command::PluginsHelper
- Helper.gem_installed?('bacon').should.be.true
- Helper.gem_installed?('fake-fake-fake-gem').should.be.false
- end
end
end