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

Commit b1f019d

Browse files
committed
Proof of Concept, skipping some specs on Rubinius, also see rspec-support
lib/rspec/support/spec/prevent_load_time_warnings.rb:53 - it "issues no warnings when the spec files are loaded", :slow do + it "issues no warnings when the spec files are loaded", :slow, :unless => (RUBY_PLATFORM == 'java' || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx')) do expect_no_warnings_from_files_in "spec", "require 'rspec/core'; require 'spec_helper'" end
1 parent 9c89e49 commit b1f019d

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

features/core_standalone.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Feature: Use rspec-core without rspec-mocks or rspec-expectations
55
available, but rspec-core can be used just fine without either of those
66
gems installed.
77

8+
# Rubinius stacktrace includes kernel/loader.rb etc.
9+
@unsupported-on-rbx
810
Scenario: Use only rspec-core when only it is installed
911
Given only rspec-core is installed
1012
And a file named "core_only_spec.rb" with:

spec/rspec/core/drb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "spec_helper"
22
require 'rspec/core/drb'
33

4-
RSpec.describe RSpec::Core::DRbRunner, :isolated_directory => true, :isolated_home => true, :type => :drb, :unless => RUBY_PLATFORM == 'java' do
4+
RSpec.describe RSpec::Core::DRbRunner, :isolated_directory => true, :isolated_home => true, :type => :drb, :unless => (RUBY_PLATFORM == 'java' || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx')) do
55
let(:config) { RSpec::Core::Configuration.new }
66
let(:out) { StringIO.new }
77
let(:err) { StringIO.new }

spec/rspec/core/formatters/documentation_formatter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def execution_result(values)
7878
")
7979
end
8080

81-
# The backrace is slightly different on JRuby so we skip there.
82-
it 'produces the expected full output', :unless => RUBY_PLATFORM == 'java' do
81+
# The backtrace is slightly different on JRuby/Rubinius so we skip there.
82+
it 'produces the expected full output', :unless => (RUBY_PLATFORM == 'java' || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx')) do
8383
output = run_example_specs_with_formatter("doc")
8484
output.gsub!(/ +$/, '') # strip trailing whitespace
8585

spec/rspec/core/formatters/progress_formatter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
end
4343

4444
# The backrace is slightly different on JRuby so we skip there.
45-
it 'produces the expected full output', :unless => RUBY_PLATFORM == 'java' do
45+
it 'produces the expected full output', :unless => (RUBY_PLATFORM == 'java' || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx')) do
4646
output = run_example_specs_with_formatter("progress")
4747
output.gsub!(/ +$/, '') # strip trailing whitespace
4848

0 commit comments

Comments
 (0)