spec/spec_helper.rb in reverse_markdown-1.3.0 vs spec/spec_helper.rb in reverse_markdown-1.4.0
- old
+ new
@@ -12,9 +12,17 @@
RSpec.configure do |config|
config.after(:each) do
ReverseMarkdown.instance_variable_set(:@config, nil)
end
+
+ config.around(jruby: :exclude) do |example|
+ if RUBY_ENGINE == 'jruby'
+ example.metadata[:skip] = true
+ else
+ example.call
+ end
+ end
end
def node_for(html)
Nokogiri::HTML.parse(html).root.children.last.child
end