This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip specs with non-mri-compatible backtrace. Also see rspec-support
The code in spec/support/ruby_features.rb shoul be moved into 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
- Loading branch information
Showing
5 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# rspec-support/lib/rspec/support/ruby_features.rb | ||
module RSpec | ||
module Support | ||
# @api private | ||
# | ||
# Provides query methods for different rubies | ||
module Ruby | ||
module_function | ||
|
||
def rbx? | ||
@rbx ||= defined?(Rubinius) == 'constant' | ||
end | ||
end | ||
|
||
# @api private | ||
# | ||
# Provides query methods for ruby features that differ among | ||
# implementations. | ||
module RubyFeatures | ||
module_function | ||
|
||
def non_mri_backtrace? | ||
@non_mri_backtrace ||= RSpec::Support::Ruby.rbx? || | ||
RSpec::Support::Ruby.jruby? | ||
end | ||
end | ||
end | ||
end |