Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make specs independent #149

Closed
wants to merge 1 commit into from

2 participants

@grosser

No need to check out the dependent projects, just the one someone is working on.
And in case simultanouse work is done on both checkout is still supported.

@dchelimsky
Owner

The specs depend on those libs, so we still need to include them in the bundle. How about structuring this with an else clause that writes the dependency without the :path argument?

thats what it does (afaik), adds path=>nil only if no files are found)

Right you are! I didn't know that bundler would ignore :path => nil.

@dchelimsky
Owner

Merged: c18e803

@dchelimsky
Owner

I reverted the merge as this broke RSpec's own cukes.

@grosser

allow specs to run without needing to checkout all rspec projects

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 2 deletions.
  1. +6 −2 Gemfile
View
8 Gemfile
@@ -11,9 +11,13 @@ gem "rr"
gem "flexmock"
gem "nokogiri"
gem "syntax"
+
gem "rspec-core", :path => "."
-gem "rspec-expectations", :path => "../rspec-expectations"
-gem "rspec-mocks", :path => "../rspec-mocks"
+%w[rspec-expectations rspec-mocks].each do |dependency|
+ path = "../#{dependency}"
+ gem dependency, :path => (path if File.exist?(path))
+end
+
unless RUBY_PLATFORM == "java"
case RUBY_VERSION
when /^1.9.2/
Something went wrong with that request. Please try again.