1
0
Fork 0
mirror of https://github.com/rspec/rspec-metagem.git synced 2022-11-09 12:09:29 -05:00

add deps on other rspec packages

This commit is contained in:
David Chelimsky 2009-06-29 13:55:31 -04:00
parent 4d5a88e1c5
commit f8d94c745d
2 changed files with 18 additions and 3 deletions

View file

@ -9,6 +9,9 @@ begin
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
gem.homepage = "http://github.com/rspec/meta"
gem.authors = ["David Chelimsky", "Chad Humphries"]
gem.add_dependency "rspec-core", "0.0.0"
gem.add_dependency "rspec-expectations", "0.0.0"
gem.add_dependency "rspec-mocks", "0.0.0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
@ -17,9 +20,15 @@ rescue LoadError
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
task :spec do
system <<-COMMANDS
cd ../core &&
rake spec &&
cd ../mocks &&
rake spec &&
cd ../expectations &&
rake spec
COMMANDS
end
Spec::Rake::SpecTask.new(:rcov) do |spec|

View file

@ -29,8 +29,14 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<rspec-expectations>, ["= 0.0.0"])
s.add_runtime_dependency(%q<rspec-mocks>, ["= 0.0.0"])
else
s.add_dependency(%q<rspec-expectations>, ["= 0.0.0"])
s.add_dependency(%q<rspec-mocks>, ["= 0.0.0"])
end
else
s.add_dependency(%q<rspec-expectations>, ["= 0.0.0"])
s.add_dependency(%q<rspec-mocks>, ["= 0.0.0"])
end
end