File tree Expand file tree Collapse file tree 8 files changed +31
-11
lines changed Expand file tree Collapse file tree 8 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1
- # This file was generated on 2015-08-11T23:21:08+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2016-01-06T09:36:22-08 :00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
# This file contains defaults for RSpec projects. Individual projects
@@ -101,9 +101,9 @@ Proc:
101
101
RedundantReturn :
102
102
AllowMultipleReturnValues : true
103
103
104
- # We have to rescue Exception in the `raise_error` matcher for it to work properly.
104
+ # Exceptions should be rescued with `Support::AllExceptionsExceptOnesWeMustNotRescue`
105
105
RescueException :
106
- Enabled : false
106
+ Enabled : true
107
107
108
108
# We haven't adopted the `fail` to signal exceptions vs `raise` for re-raises convention.
109
109
SignalException :
Original file line number Diff line number Diff line change 1
- # This file was generated on 2015-08-11T23:21:08+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2016-01-06T09:36:22-08 :00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
version : " {build}"
Original file line number Diff line number Diff line change 16
16
# Remove the existing rails version so we can properly use master or other
17
17
# edge branches
18
18
gsub_file 'Gemfile' , /^.*\b gem 'rails.*$/ , ''
19
+ gsub_file "Gemfile" , /.*debugger.*/ , ''
19
20
20
21
# Nokogiri version is pinned in rspec-rails' Gemfile since it tend to cause installation problems
21
22
# on Travis CI, so we pin nokogiri in this example app also.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2015-08-11T23:21:08+01 :00 from the rspec-dev repo.
2
+ # This file was generated on 2016-01-06T09:36:22-08 :00 from the rspec-dev repo.
3
3
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
4
5
5
set -e
Original file line number Diff line number Diff line change 1
- # This file was generated on 2015-08-11T23:21:08+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2016-01-06T09:36:22-08 :00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
@@ -52,6 +52,11 @@ function run_cukes {
52
52
# the bin/cucumber approach below. That approach is faster
53
53
# (as it avoids the bundler tax), so we use it on rubies where we can.
54
54
bundle exec cucumber --strict
55
+ elif is_jruby; then
56
+ # For some reason JRuby doesn't like our improved bundler setup
57
+ RUBYOPT=" -I${PWD} /../bundle -rbundler/setup" \
58
+ PATH=" ${PWD} /bin:$PATH " \
59
+ bin/cucumber --strict
55
60
else
56
61
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
57
62
# and PATH for those that are using `rspec` or `rake`.
@@ -78,7 +83,11 @@ function run_spec_suite_for {
78
83
pushd ../$1
79
84
unset BUNDLE_GEMFILE
80
85
bundle_install_flags=` cat .travis.yml | grep bundler_args | tr -d ' "' | grep -o " .*" `
81
- travis_retry eval " bundle install $bundle_install_flags "
86
+ if is_mri_192_plus; then
87
+ travis_retry eval " RUBYOPT=$RUBYOPT :'--enable rubygems' bundle install $bundle_install_flags "
88
+ else
89
+ travis_retry eval " bundle install $bundle_install_flags "
90
+ fi
82
91
run_specs_and_record_done
83
92
popd
84
93
else
Original file line number Diff line number Diff line change 1
- # This file was generated on 2015-08-11T23:21:08+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2016-01-06T09:36:22-08 :00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
function is_mri {
@@ -11,6 +11,16 @@ function is_mri {
11
11
fi ;
12
12
}
13
13
14
+ function is_jruby {
15
+ if ruby -e " exit(defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java')" ; then
16
+ # RUBY_ENGINE only returns 'ruby' on MRI.
17
+ # MRI 1.8.7 lacks the constant but all other rubies have it (including JRuby in 1.8 mode)
18
+ return 0
19
+ else
20
+ return 1
21
+ fi ;
22
+ }
23
+
14
24
function is_mri_192 {
15
25
if is_mri; then
16
26
if ruby -e " exit(RUBY_VERSION == '1.9.2')" ; then
@@ -25,7 +35,7 @@ function is_mri_192 {
25
35
26
36
function is_mri_192_plus {
27
37
if is_mri; then
28
- if ruby -e " exit(RUBY_VERSION.to_f > 1.9 )" ; then
38
+ if ruby -e " exit(RUBY_VERSION.to_f > 1.8 )" ; then
29
39
return 0
30
40
else
31
41
return 1
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2015-08-11T23:21:08+01 :00 from the rspec-dev repo.
2
+ # This file was generated on 2016-01-06T09:36:22-08 :00 from the rspec-dev repo.
3
3
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
4
5
5
set -e
Original file line number Diff line number Diff line change 1
- # This file was generated on 2015-08-11T23:21:08+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2016-01-06T09:36:22-08 :00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
# Taken from:
You can’t perform that action at this time.
0 commit comments