Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add gems dependencies.

  • Loading branch information...
commit 6b47f7558986c763c6454186021ef0be6a3021ef 1 parent 25eadbe
@jrichardlai authored
View
3  Gemfile
@@ -4,6 +4,7 @@ source "http://rubygems.org"
gemspec
group :development do
+ gem 'rdoc'
gem 'rake'
gem 'yard'
gem 'ruby-debug'
@@ -16,7 +17,7 @@ group :test do
gem 'guard-rspec'
gem 'rb-fsevent'
gem 'growl'
- gem 'vcr'
+ gem 'vcr', '~> 1.11.3'
gem 'fakeweb'
gem 'rcov', :require => nil
end
View
6 Rakefile
@@ -2,14 +2,14 @@ require 'bundler'
Bundler::GemHelper.install_tasks
require 'rubygems'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
+require 'rubygems/package_task'
+require 'rdoc/task'
require 'rspec/core'
require 'rspec/core/rake_task'
spec = eval(File.read('taskrabbit.gemspec'))
-Rake::GemPackageTask.new(spec) do |pkg|
+Gem::PackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
View
2  spec/taskrabbit/collection_spec.rb
@@ -5,11 +5,13 @@
Taskrabbit::Collection::ARRAY_METHODS.each do |method|
it "should define #{method}" do
+ allow_message_expectations_on_nil
subject.should_receive(method)
expect { subject.send(method) }.to_not raise_error
end
it "should call the #{method} on items" do
+ allow_message_expectations_on_nil
subject.items.should_receive(method)
expect { subject.send(method) }.to_not raise_error
end
View
2  taskrabbit.gemspec
@@ -16,6 +16,8 @@ Gem::Specification.new do |s|
s.add_dependency 'api_smith', '1.0.0'
s.add_development_dependency "rspec", "~> 2.6.0"
+ s.add_development_dependency "vcr", "~> 1.11.3"
+ s.add_development_dependency "rdoc", '~> 3.12'
s.rubyforge_project = "taskrabbit"
Please sign in to comment.
Something went wrong with that request. Please try again.