Skip to content
This repository
Browse code

allow specs to run without needing to checkout all rspec projects

- Closes #149.
  • Loading branch information...
commit c8eae9f681cb9464131908f4b0fd2f319d6801ec 1 parent c389b0c
Michael Grosser authored September 19, 2010 dchelimsky committed February 05, 2011

Showing 1 changed file with 4 additions and 7 deletions. Show diff stats Hide diff stats

  1. 11  Gemfile
11  Gemfile
... ...
@@ -1,13 +1,10 @@
1 1
 source "http://rubygems.org"
2 2
 
3 3
 ### rspec libs
4  
-%w[rspec-core rspec-expectations rspec-mocks].each do |lib|
5  
-  library_path = File.expand_path("../../#{lib}", __FILE__)
6  
-  if File.exist?(library_path)
7  
-    gem lib, :path => library_path
8  
-  else
9  
-    gem lib
10  
-  end
  4
+gem "rspec-core", :path => "."
  5
+%w[rspec-expectations rspec-mocks].each do |dependency|
  6
+  path = "../#{dependency}"
  7
+  gem dependency, :path => (path if File.exist?(path))
11 8
 end
12 9
 
13 10
 ### dev dependencies

0 notes on commit c8eae9f

Please sign in to comment.
Something went wrong with that request. Please try again.