Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix config syntax sandbox on jRuby.

  • Loading branch information...
commit b468a192285959bf6c9587b1bbe6c1aa947d7c67 1 parent 04ff16b
@myronmarston myronmarston authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  spec/rspec/matchers/configuration_spec.rb
View
3  spec/rspec/matchers/configuration_spec.rb
@@ -72,9 +72,10 @@ def delegated?; true; end
# it could leave things in a "broken" state where tons of other examples fail.
if RUBY_PLATFORM == "java"
def sandboxed
+ orig_syntax = RSpec::Matchers.configuration.syntax
yield
ensure
- configure_syntax([:should, :expect])
+ configure_syntax(orig_syntax)
end
else
include InSubProcess
Please sign in to comment.
Something went wrong with that request. Please try again.