lib/lookbook/engine.rb in lookbook-1.0.3 vs lib/lookbook/engine.rb in lookbook-1.0.4

- old
+ new

@@ -169,10 +169,10 @@ end def websocket config = Lookbook.config return @websocket unless @websocket.nil? - return unless config.auto_refresh == true + return unless config.auto_refresh == true && !Rails.env.test? Lookbook.logger.info "Initializing websocket" cable = ActionCable::Server::Configuration.new cable.cable = {adapter: "async"}.with_indifferent_access cable.mount_path = config.cable_mount_path