Permalink
Browse files

allow specs to run without needing to checkout all rspec projects

- Closes #149.
  • Loading branch information...
1 parent c389b0c commit c8eae9f681cb9464131908f4b0fd2f319d6801ec @grosser grosser committed with dchelimsky Sep 19, 2010
Showing with 4 additions and 7 deletions.
  1. +4 −7 Gemfile
View
11 Gemfile
@@ -1,13 +1,10 @@
source "http://rubygems.org"
### rspec libs
-%w[rspec-core rspec-expectations rspec-mocks].each do |lib|
- library_path = File.expand_path("../../#{lib}", __FILE__)
- if File.exist?(library_path)
- gem lib, :path => library_path
- else
- gem lib
- end
+gem "rspec-core", :path => "."
+%w[rspec-expectations rspec-mocks].each do |dependency|
+ path = "../#{dependency}"
+ gem dependency, :path => (path if File.exist?(path))
end
### dev dependencies

0 comments on commit c8eae9f

Please sign in to comment.