summaryrefslogtreecommitdiff
path: root/spec/ruby/spec_helper.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-01 15:41:50 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-01 15:41:50 +0000
commit4d7b0b9112f2adf9e87ef75056f930bf7c1f3dc4 (patch)
tree8d712e18a619a9720d181d0d44e8cc2474ff31ee /spec/ruby/spec_helper.rb
parent821d9a2d30f2e0d3f9009dc001b4b49aaa63c66e (diff)
Update to ruby/spec@bacedc5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/spec_helper.rb')
-rw-r--r--spec/ruby/spec_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/ruby/spec_helper.rb b/spec/ruby/spec_helper.rb
index e7873ce594..c38965d3c5 100644
--- a/spec/ruby/spec_helper.rb
+++ b/spec/ruby/spec_helper.rb
@@ -16,11 +16,14 @@ end
# Running directly with ruby some_spec.rb
unless ENV['MSPEC_RUNNER']
+ mspec_lib = File.expand_path("../../mspec/lib", __FILE__)
+ $LOAD_PATH << mspec_lib if File.directory?(mspec_lib)
+
begin
require 'mspec'
require 'mspec/commands/mspec-run'
rescue LoadError
- puts "Please add -Ipath/to/mspec/lib or install the MSpec gem to run the specs."
+ puts "Please add -Ipath/to/mspec/lib or clone mspec as a sibling to run the specs."
exit 1
end