Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Updates from rspec-dev (2017-08-10) #326

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop_rspec_base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# This file contains defaults for RSpec projects. Individual projects
Expand Down
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

language: ruby
Expand Down Expand Up @@ -28,16 +28,18 @@ rvm:
- rbx
- jruby
- jruby-head
- jruby-18mode
- jruby-9.1.2.0
- jruby-1.7
env:
- JRUBY_OPTS='--dev'
matrix:
include:
- rvm: jruby-1.7
env: JRUBY_OPTS='--dev --1.8'
allow_failures:
- rvm: jruby-head
- rvm: ruby-head
- rvm: rbx
fast_finish: true
env:
- JRUBY_OPTS='--dev'
branches:
only:
- master
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

version: "{build}"
Expand Down
4 changes: 2 additions & 2 deletions lib/rspec/support/ruby_features.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def supports_exception_cause?

if Ruby.jruby?
ripper_requirements.push(Ruby.jruby_version >= '1.7.5')
# Ripper on JRuby 9.0.0.0.rc1 or later reports wrong line number
# Ripper on JRuby 9.0.0.0.rc1 - 9.1.8.0 reports wrong line number
# or cannot parse source including `:if`.
ripper_requirements.push(Ruby.jruby_version < '9.0.0.0.rc1')
ripper_requirements.push(!Ruby.jruby_version.between?('9.0.0.0.rc1', '9.1.8.0'))
end

if ripper_requirements.all?
Expand Down
2 changes: 1 addition & 1 deletion script/clone_all_rspec_repos
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down
2 changes: 1 addition & 1 deletion script/functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down
2 changes: 1 addition & 1 deletion script/predicate_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

function is_mri {
Expand Down
2 changes: 1 addition & 1 deletion script/run_build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down
2 changes: 1 addition & 1 deletion script/travis_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2017-07-15T20:27:05+07:00 from the rspec-dev repo.
# This file was generated on 2017-08-10T01:31:46+09:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# Taken from:
Expand Down
10 changes: 10 additions & 0 deletions spec/rspec/support/object_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ def with_date_loaded
it 'includes a conventional representation of the decimal' do
in_sub_process_if_possible do
require 'bigdecimal'
# Suppress warning on JRuby 1.7:
# file:/Users/me/.rbenv/versions/jruby-1.7.26/lib/jruby.jar!/jruby/bigdecimal.rb:1
# warning: loading in progress, circular require considered harmful - bigdecimal.jar
$stderr.reset!

expect(formatted_decimal).to include('3.3 (#<BigDecimal')
end
end
Expand Down Expand Up @@ -136,6 +141,11 @@ def with_delegate_loaded
it 'formats the underlying object normally' do
with_delegate_loaded do
require 'bigdecimal'
# Suppress warning on JRuby 1.7:
# file:/Users/me/.rbenv/versions/jruby-1.7.26/lib/jruby.jar!/jruby/bigdecimal.rb:1
# warning: loading in progress, circular require considered harmful - bigdecimal.jar
$stderr.reset!

expect(ObjectFormatter.format(delegator)).to eq "#<SimpleDelegator(#{formatted_decimal})>"
end
end
Expand Down