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

Commit b985c4f

Browse files
committed
pend certain specs on jruby 9000
1 parent f872642 commit b985c4f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

spec/integration/failed_line_detection_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
expect(last_cmd_stdout).to include("expect(1).to eq(2)")
4040
end
4141

42-
it "finds the direct source of failure in any lib, app or spec file, and allows the user to configure what is considered a project source dir" do
42+
it "finds the direct source of failure in any lib, app or spec file, and allows the user to configure what is considered a project source dir", :pending => RSpec::Support::Ruby.jruby_9000? do
4343
write_file "lib/lib_mod.rb", "
4444
module LibMod
4545
def self.trigger_failure
@@ -101,7 +101,7 @@ def self.trigger_failure
101101
and exclude("raise 'AppMod failure'")
102102
end
103103

104-
it "finds the callsite of a method provided by a gem that fails (rather than the line in the gem)" do
104+
it "finds the callsite of a method provided by a gem that fails (rather than the line in the gem)", :pending => RSpec::Support::Ruby.jruby_9000? do
105105
write_file "vendor/gems/assertions/lib/assertions.rb", "
106106
module Assertions
107107
AssertionFailed = Class.new(StandardError)
@@ -135,7 +135,7 @@ def assert(value, msg)
135135
and exclude("raise(AssertionFailed, msg)")
136136
end
137137

138-
it "falls back to finding a line in a gem when there are no backtrace lines in the app, lib or spec directories" do
138+
it "falls back to finding a line in a gem when there are no backtrace lines in the app, lib or spec directories", :pending => RSpec::Support::Ruby.jruby_9000? do
139139
write_file "vendor/gems/before_failure/lib/before_failure.rb", "
140140
RSpec.configure do |c|
141141
c.before { raise 'before failure!' }

spec/rspec/core/example_group_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ def define_and_run_group(define_outer_example = false)
10301030
expect(self.group.examples.first.execution_result.pending_message).to eq(RSpec::Core::Pending::NO_REASON_GIVEN)
10311031
end
10321032

1033-
it 'sets the backtrace to the example definition so it can be located by the user' do
1033+
it 'sets the backtrace to the example definition so it can be located by the user', :pending => RSpec::Support::Ruby.jruby_9000? do
10341034
file = RSpec::Core::Metadata.relative_path(__FILE__)
10351035
expected = [file, __LINE__ + 2].map(&:to_s)
10361036
group = RSpec.describe do

spec/rspec/core/example_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def expect_pending_result(example)
646646
expect(blah).to be(:success)
647647
end
648648

649-
it 'sets the backtrace to the example definition so it can be located by the user' do
649+
it 'sets the backtrace to the example definition so it can be located by the user', :pending => RSpec::Support::Ruby.jruby_9000? do
650650
file = RSpec::Core::Metadata.relative_path(__FILE__)
651651
expected = [file, __LINE__ + 2].map(&:to_s)
652652
group = RSpec.describe do

0 commit comments

Comments
 (0)