Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

exclude drb examples in jruby

  • Loading branch information...
commit dddb3fdb63ab2a901b8b607b963147a5fdfac800 1 parent 0e850f7
@dchelimsky dchelimsky authored
Showing with 7 additions and 2 deletions.
  1. +1 −1  spec/rspec/core/drb_command_line_spec.rb
  2. +6 −1 spec/spec_helper.rb
View
2  spec/rspec/core/drb_command_line_spec.rb
@@ -1,6 +1,6 @@
require "spec_helper"
-describe "::DRbCommandLine" do
+describe "::DRbCommandLine", :ruby => "!jruby" do
before do
RSpec.stub(:configuration).and_return(RSpec::Core::Configuration.new)
end
View
7 spec/spec_helper.rb
@@ -55,7 +55,12 @@ def in_editor?
c.filter_run :focus => true
c.run_all_when_everything_filtered = true
c.filter_run_excluding :ruby => lambda {|version|
- !(RUBY_VERSION.to_s =~ /^#{version.to_s}/)
+ case version.to_s
+ when "!ruby"
+ RUBY_ENGINE != "jruby"
+ else
+ !(RUBY_VERSION.to_s =~ /^#{version.to_s}/)
+ end
}
c.before(:each) do
@real_world = RSpec.world

0 comments on commit dddb3fd

Please sign in to comment.
Something went wrong with that request. Please try again.