Sha256: f7e816f9a573290fa3ea0140fbb0b53ccf847a9158e14c905db075ce4142bca9

Contents?: true

Size: 505 Bytes

Versions: 8

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

require "rails-dom-testing"
require "active_support/test_case"
require "minitest/autorun"

ActiveSupport::TestCase.test_order = :random

module DomTestingHelpers
  def jruby?
    !! Nokogiri.jruby?
  end

  def with_default_html_version(version)
    old_version = Rails::Dom::Testing.default_html_version
    begin
      Rails::Dom::Testing.default_html_version = version
      yield
    ensure
      Rails::Dom::Testing.default_html_version = old_version
    end
  end
end

Version data entries

8 entries across 8 versions & 6 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/rails-dom-testing-2.2.0/test/test_helper.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rails-dom-testing-2.2.0/test/test_helper.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/test/test_helper.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/test/test_helper.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/test/test_helper.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/test/test_helper.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/test/test_helper.rb
rails-dom-testing-2.2.0 test/test_helper.rb