Sha256: 14a954b48358e0c8c2abafef3af02a8f16092bc00d49e5e216afb72e2ee87771
Contents?: true
Size: 935 Bytes
Versions: 3
Compression:
Stored size: 935 Bytes
Contents
# frozen_string_literal: true ENV["RAILS_ENV"] ||= "test" require "minitest/mock" require "rails" require "active_model" require "action_controller" require "pry" require_relative "../lib/stimulus_reflex" class TestApp < Rails::Application routes.draw { root to: "test#index" } end class ApplicationController < ActionController::Base; end class TestController < ApplicationController include Rails.application.routes.url_helpers def index head :ok end end class SessionMock def load! nil end end class ActionDispatch::Request def session @session ||= SessionMock.new end end class TestModel include ActiveModel::Model attr_accessor :id end StimulusReflex.configuration.parent_channel = "ActionCable::Channel::Base" ActionCable::Server::Base.config.cable = {adapter: "test"} ActionCable::Server::Base.config.logger = Logger.new(nil) require_relative "../app/channels/stimulus_reflex/channel"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stimulus_reflex-3.4.1 | test/test_helper.rb |
stimulus_reflex-3.4.0 | test/test_helper.rb |
stimulus_reflex-3.4.0.pre9 | test/test_helper.rb |