Browse files

Fix config syntax sandbox on jRuby.

  • Loading branch information...
1 parent 04ff16b commit b468a192285959bf6c9587b1bbe6c1aa947d7c67 @myronmarston myronmarston committed Jan 15, 2013
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

0 comments on commit b468a19

Please sign in to comment.