view_component/test/test_helper.rb

19 строки
396 B
Ruby
Исходник Обычный вид История

2019-08-16 20:09:33 +03:00
# frozen_string_literal: true
require "bundler/setup"
require "pp"
require "pathname"
require "action_view/component/base"
2019-08-16 20:09:33 +03:00
require "minitest/autorun"
2019-08-27 19:22:56 +03:00
require "action_view/component/test_helpers"
2019-08-16 20:09:33 +03:00
# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../config/environment.rb", __FILE__)
require "rails/test_help"
def trim_result(html)
html.delete(" \t\r\n")
end