require 'opal-rspec'
require 'opal/jquery'
require 'opal/jquery/rspec'

module JQueryTestHelpers
  def find(selector)
    Element.find selector
  end
end

RSpec.configure do |config|
  config.include JQueryTestHelpers
end

require 'opal-rspec'
require 'opal/jquery'
require 'opal/jquery/rspec'

module JQueryTestHelpers
  def find(selector)
    Element.find selector
  end
end

RSpec.configure do |config|
  config.include JQueryTestHelpers
  config.formatter = :doc
end

Use doc format for specs
Use doc format for specs