Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip specs with non-mri-compatible backtrace. #1871

Merged
merged 1 commit into from
Feb 9, 2015
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: 2 additions & 0 deletions features/core_standalone.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Feature: Use rspec-core without rspec-mocks or rspec-expectations
available, but rspec-core can be used just fine without either of those
gems installed.

# Rubinius stacktrace includes kernel/loader.rb etc.
@unsupported-on-rbx
Scenario: Use only rspec-core when only it is installed
Given only rspec-core is installed
And a file named "core_only_spec.rb" with:
Expand Down
4 changes: 2 additions & 2 deletions spec/rspec/core/formatters/documentation_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def execution_result(values)
")
end

# The backrace is slightly different on JRuby so we skip there.
it 'produces the expected full output', :unless => RUBY_PLATFORM == 'java' do
# The backtrace is slightly different on JRuby/Rubinius so we skip there.
it 'produces the expected full output', :if => RSpec::Support::Ruby.mri? do
output = run_example_specs_with_formatter("doc")
output.gsub!(/ +$/, '') # strip trailing whitespace

Expand Down
4 changes: 2 additions & 2 deletions spec/rspec/core/formatters/progress_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
expect(output.string).to eq("\n")
end

# The backrace is slightly different on JRuby so we skip there.
it 'produces the expected full output', :unless => RUBY_PLATFORM == 'java' do
# The backtrace is slightly different on JRuby/Rubinius so we skip there.
it 'produces the expected full output', :if => RSpec::Support::Ruby.mri? do
output = run_example_specs_with_formatter("progress")
output.gsub!(/ +$/, '') # strip trailing whitespace

Expand Down