File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
spec/rspec/core/formatters Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ Feature: Use rspec-core without rspec-mocks or rspec-expectations
5
5
available, but rspec-core can be used just fine without either of those
6
6
gems installed.
7
7
8
+ # Rubinius stacktrace includes kernel/loader.rb etc.
9
+ @unsupported-on-rbx
8
10
Scenario : Use only rspec-core when only it is installed
9
11
Given only rspec-core is installed
10
12
And a file named "core_only_spec.rb" with:
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ def execution_result(values)
77
77
" )
78
78
end
79
79
80
- # The backrace is slightly different on JRuby so we skip there.
81
- it 'produces the expected full output' , :unless => RUBY_PLATFORM == 'java' do
80
+ # The backtrace is slightly different on JRuby/Rubinius so we skip there.
81
+ it 'produces the expected full output' , :if => RSpec :: Support :: Ruby . mri? do
82
82
output = run_example_specs_with_formatter ( "doc" )
83
83
output . gsub! ( / +$/ , '' ) # strip trailing whitespace
84
84
Original file line number Diff line number Diff line change 40
40
expect ( output . string ) . to eq ( "\n " )
41
41
end
42
42
43
- # The backrace is slightly different on JRuby so we skip there.
44
- it 'produces the expected full output' , :unless => RUBY_PLATFORM == 'java' do
43
+ # The backtrace is slightly different on JRuby/Rubinius so we skip there.
44
+ it 'produces the expected full output' , :if => RSpec :: Support :: Ruby . mri? do
45
45
output = run_example_specs_with_formatter ( "progress" )
46
46
output . gsub! ( / +$/ , '' ) # strip trailing whitespace
47
47
You can’t perform that action at this time.
0 commit comments