web-console 2.1.3 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.markdown +45 -0
  3. data/README.markdown +26 -6
  4. data/Rakefile +37 -0
  5. data/lib/web_console/extensions.rb +2 -1
  6. data/lib/web_console/integration/cruby.rb +2 -1
  7. data/lib/web_console/integration/rubinius.rb +2 -1
  8. data/lib/web_console/railtie.rb +19 -1
  9. data/lib/web_console/session.rb +4 -3
  10. data/lib/web_console/templates/_inner_console_markup.html.erb +8 -3
  11. data/lib/web_console/templates/console.js.erb +169 -46
  12. data/lib/web_console/templates/error_page.js.erb +2 -15
  13. data/lib/web_console/templates/main.js.erb +1 -24
  14. data/lib/web_console/templates/style.css.erb +22 -9
  15. data/lib/web_console/tracer.rb +11 -0
  16. data/lib/web_console/version.rb +1 -1
  17. metadata +5 -155
  18. data/test/dummy/README.rdoc +0 -28
  19. data/test/dummy/Rakefile +0 -6
  20. data/test/dummy/app/assets/javascripts/application.js +0 -13
  21. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  22. data/test/dummy/app/controllers/application_controller.rb +0 -5
  23. data/test/dummy/app/controllers/controller_helper_test_controller.rb +0 -7
  24. data/test/dummy/app/controllers/exception_test_controller.rb +0 -15
  25. data/test/dummy/app/controllers/helper_error_controller.rb +0 -4
  26. data/test/dummy/app/controllers/helper_test_controller.rb +0 -5
  27. data/test/dummy/app/controllers/tests_controller.rb +0 -16
  28. data/test/dummy/app/helpers/application_helper.rb +0 -2
  29. data/test/dummy/app/views/controller_helper_test/index.html.erb +0 -1
  30. data/test/dummy/app/views/exception_test/xhr.html.erb +0 -1
  31. data/test/dummy/app/views/helper_error/index.html.erb +0 -2
  32. data/test/dummy/app/views/helper_test/index.html.erb +0 -220
  33. data/test/dummy/app/views/layouts/application.html.erb +0 -16
  34. data/test/dummy/bin/bundle +0 -3
  35. data/test/dummy/bin/rails +0 -4
  36. data/test/dummy/bin/rake +0 -4
  37. data/test/dummy/config.ru +0 -4
  38. data/test/dummy/config/application.rb +0 -19
  39. data/test/dummy/config/boot.rb +0 -5
  40. data/test/dummy/config/database.yml +0 -25
  41. data/test/dummy/config/environment.rb +0 -5
  42. data/test/dummy/config/environments/development.rb +0 -29
  43. data/test/dummy/config/environments/production.rb +0 -80
  44. data/test/dummy/config/environments/test.rb +0 -34
  45. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  46. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  47. data/test/dummy/config/initializers/inflections.rb +0 -16
  48. data/test/dummy/config/initializers/mime_types.rb +0 -5
  49. data/test/dummy/config/initializers/secret_token.rb +0 -12
  50. data/test/dummy/config/initializers/session_store.rb +0 -3
  51. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  52. data/test/dummy/config/locales/en.yml +0 -23
  53. data/test/dummy/config/routes.rb +0 -15
  54. data/test/dummy/db/schema.rb +0 -16
  55. data/test/dummy/db/test.sqlite3 +0 -0
  56. data/test/dummy/log/test.log +0 -808
  57. data/test/dummy/public/404.html +0 -58
  58. data/test/dummy/public/422.html +0 -58
  59. data/test/dummy/public/500.html +0 -57
  60. data/test/dummy/public/favicon.ico +0 -0
  61. data/test/dummy/tmp/cache/assets/test/sprockets/0c9b99b1b975b36a5b686845ae729db3 +0 -0
  62. data/test/dummy/tmp/cache/assets/test/sprockets/12e9f58adcf819cf65fd68b6859a438f +0 -0
  63. data/test/dummy/tmp/cache/assets/test/sprockets/1fd6abead3df36a4e4a2cb042a551b39 +0 -0
  64. data/test/dummy/tmp/cache/assets/test/sprockets/33b5eb81b5aaaa1e6dd5dcb6517792b4 +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/3e460b2e021085f88b5597b38d194932 +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/52f04b2ea6e461f4661b6d0be393fa94 +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/688c344c2919f882338f06c5daaea209 +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/7f079298e19bbef40a5d6a37dc03033a +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/91aa709f89e465f58056fabe5f75eef4 +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/95f4e4e5217aec9f71b2c1a65a9a9231 +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/9c41be9b6625756fbb6d05b7665dd911 +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/a95f64d41fcf8244b8f5b84a55f07822 +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/c5e6bf1efd5929bee63e28ad7c9f6f83 +0 -0
  74. data/test/dummy/tmp/cache/assets/test/sprockets/d863259e9eeca657a1624135cfe24446 +0 -0
  75. data/test/dummy/tmp/cache/assets/test/sprockets/e1d2fc4601b6423ec8a42415ee05dd14 +0 -0
  76. data/test/dummy/tmp/cache/assets/test/sprockets/e82616536a759c2e87d703adc77d65da +0 -0
  77. data/test/support/scenarios/bad_custom_error_scenario.rb +0 -17
  78. data/test/support/scenarios/basic_nested_scenario.rb +0 -15
  79. data/test/support/scenarios/custom_error_scenario.rb +0 -11
  80. data/test/support/scenarios/eval_nested_scenario.rb +0 -15
  81. data/test/support/scenarios/flat_scenario.rb +0 -9
  82. data/test/support/scenarios/reraised_scenario.rb +0 -21
  83. data/test/test_helper.rb +0 -78
  84. data/test/web_console/evaluator_test.rb +0 -73
  85. data/test/web_console/extensions_test.rb +0 -28
  86. data/test/web_console/helper_test.rb +0 -76
  87. data/test/web_console/integration_test.rb +0 -47
  88. data/test/web_console/middleware_test.rb +0 -116
  89. data/test/web_console/railtie_test.rb +0 -99
  90. data/test/web_console/request_test.rb +0 -82
  91. data/test/web_console/session_test.rb +0 -59
  92. data/test/web_console/whiny_request_test.rb +0 -33
  93. data/test/web_console/whitelist_test.rb +0 -43
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6
- <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
7
- <%= csrf_meta_tags %>
8
- <%= yield :head %>
9
-
10
- </head>
11
- <body>
12
-
13
- <%= yield %>
14
-
15
- </body>
16
- </html>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,19 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require 'web_console'
7
-
8
- # Require pry-rails if the pry shell is explicitly requested.
9
- require 'pry-rails' if ENV['PRY']
10
-
11
- module Dummy
12
- class Application < Rails::Application
13
- # When the Dummy application is ran in a docker container, the local
14
- # computer address is in the 172.16.0.0/12 range. Have it whitelisted.
15
- config.web_console.whitelisted_ips = %w( 127.0.0.1 172.16.0.0/12 )
16
-
17
- config.active_support.test_order = :random
18
- end
19
- end
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application.
5
- Dummy::Application.initialize!
@@ -1,29 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send.
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger.
20
- config.active_support.deprecation = :log
21
-
22
- # Raise an error on page load if there are pending migrations
23
- config.active_record.migration_error = :page_load
24
-
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
28
- config.assets.debug = true
29
- end
@@ -1,80 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both thread web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
24
-
25
- # Compress JavaScripts and CSS.
26
- config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
28
-
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
31
-
32
- # Generate digests for assets URLs.
33
- config.assets.digest = true
34
-
35
- # Version of your assets, change this if you want to expire all your assets.
36
- config.assets.version = '1.0'
37
-
38
- # Specifies the header that your server uses for sending files.
39
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
-
42
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
- # config.force_ssl = true
44
-
45
- # Set to :debug to see everything in the log.
46
- config.log_level = :info
47
-
48
- # Prepend all log lines with the following tags.
49
- # config.log_tags = [ :subdomain, :uuid ]
50
-
51
- # Use a different logger for distributed setups.
52
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
-
54
- # Use a different cache store in production.
55
- # config.cache_store = :mem_cache_store
56
-
57
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
- # config.action_controller.asset_host = "http://assets.example.com"
59
-
60
- # Precompile additional assets.
61
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
- # config.assets.precompile += %w( search.js )
63
-
64
- # Ignore bad email addresses and do not raise email delivery errors.
65
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
- # config.action_mailer.raise_delivery_errors = false
67
-
68
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation can not be found).
70
- config.i18n.fallbacks = true
71
-
72
- # Send deprecation notices to registered listeners.
73
- config.active_support.deprecation = :notify
74
-
75
- # Disable automatic flushing of the log to improve performance.
76
- # config.autoflush_log = false
77
-
78
- # Use default logging formatter so that PID and timestamp are not suppressed.
79
- config.log_formatter = ::Logger::Formatter.new
80
- end
@@ -1,34 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = true
14
-
15
- # Show full error reports and disable caching.
16
- config.consider_all_requests_local = true
17
- config.action_controller.perform_caching = false
18
-
19
- # Raise exceptions instead of rendering exception templates.
20
- config.action_dispatch.show_exceptions = false
21
-
22
- # Disable request forgery protection in test environment.
23
- config.action_controller.allow_forgery_protection = false
24
-
25
- # Tell Action Mailer not to deliver emails to the real world.
26
- # The :test delivery method accumulates sent emails in the
27
- # ActionMailer::Base.deliveries array.
28
- config.action_mailer.delivery_method = :test
29
-
30
- # Print deprecation notices to the stderr.
31
- config.active_support.deprecation = :stderr
32
-
33
- config.i18n.enforce_available_locales = false
34
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,12 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- Dummy::Application.config.secret_key_base = '97a4619f221e596a6987a3e85838e6c65f225096496e0b01a52f4901e26339755682845a1c315969bb33ae8ebe1e3bedc698ec75ad4eb0c4c3dc9bd2338b1adf'
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,15 +0,0 @@
1
- Rails.application.routes.draw do
2
- root to: "exception_test#index"
3
-
4
- get :exception_test, to: "exception_test#index"
5
- get :xhr_test, to: "exception_test#xhr"
6
- get :helper_test, to: "helper_test#index"
7
- get :helper_error, to: "helper_error#index"
8
- get :controller_helper_test, to: "controller_helper_test#index"
9
-
10
- namespace :tests do
11
- get :render_console_ontop_of_text
12
- get :renders_console_only_once
13
- get :doesnt_render_console_on_non_html_requests
14
- end
15
- end
@@ -1,16 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 0) do
15
-
16
- end
File without changes
@@ -1,808 +0,0 @@
1
-  (6.4ms) begin transaction
2
- --------------------------------------------------------------------------------------------------------
3
- ActionDispatch::ExceptionWrapperTest: test_#extract_sources_fetches_source_fragments_for_every_backtrace
4
- --------------------------------------------------------------------------------------------------------
5
-  (0.1ms) rollback transaction
6
-  (0.1ms) begin transaction
7
- ---------------------------------------------------
8
- REPLTest: test_preserves_the_session_in_the_binding
9
- ---------------------------------------------------
10
-  (0.0ms) rollback transaction
11
-  (0.1ms) begin transaction
12
- --------------------------------
13
- REPLTest: test_prompt_is_present
14
- --------------------------------
15
-  (0.1ms) rollback transaction
16
-  (0.1ms) begin transaction
17
- ---------------------------------------------------------
18
- REPLTest: test_sending_input_returns_the_result_as_output
19
- ---------------------------------------------------------
20
-  (0.0ms) rollback transaction
21
-  (0.1ms) begin transaction
22
- ----------------------------------------------------------
23
- REPLTest: test_session_preservation_requires_same_bindings
24
- ----------------------------------------------------------
25
-  (0.0ms) rollback transaction
26
-  (0.0ms) begin transaction
27
- --------------------------------------------------------------------
28
- WebConsole::ColorsTest: test_#background=_is_an_alias_of_#background
29
- --------------------------------------------------------------------
30
-  (0.0ms) rollback transaction
31
-  (0.1ms) begin transaction
32
- --------------------------------------------------------------------
33
- WebConsole::ColorsTest: test_#background_can_be_explicitly_specified
34
- --------------------------------------------------------------------
35
-  (0.1ms) rollback transaction
36
-  (0.1ms) begin transaction
37
- ----------------------------------------------------------------------------
38
- WebConsole::ColorsTest: test_#background_is_the_first_color_if_not_specified
39
- ----------------------------------------------------------------------------
40
-  (0.0ms) rollback transaction
41
-  (0.1ms) begin transaction
42
- -----------------------------------------------
43
- WebConsole::ColorsTest: test_#default_is_:light
44
- -----------------------------------------------
45
-  (0.0ms) rollback transaction
46
-  (0.1ms) begin transaction
47
- --------------------------------------------------------------------
48
- WebConsole::ColorsTest: test_#foreground=_is_an_alias_of_#foreground
49
- --------------------------------------------------------------------
50
-  (0.0ms) rollback transaction
51
-  (0.1ms) begin transaction
52
- --------------------------------------------------------------------
53
- WebConsole::ColorsTest: test_#foreground_can_be_explicitly_specified
54
- --------------------------------------------------------------------
55
-  (0.0ms) rollback transaction
56
-  (0.1ms) begin transaction
57
- ---------------------------------------------------------------------------
58
- WebConsole::ColorsTest: test_#foreground_is_the_last_color_if_not_specified
59
- ---------------------------------------------------------------------------
60
-  (0.0ms) rollback transaction
61
-  (0.1ms) begin transaction
62
- --------------------------------------------------------------------------------
63
- WebConsole::ColorsTest: test_#to_json_includes_the_background_and_the_foreground
64
- --------------------------------------------------------------------------------
65
-  (0.1ms) rollback transaction
66
-  (0.1ms) begin transaction
67
- -----------------------------------------------------------
68
- WebConsole::ColorsTest: test_.[]_is_an_alias_for_.themes#[]
69
- -----------------------------------------------------------
70
-  (0.0ms) rollback transaction
71
-  (0.1ms) begin transaction
72
- ----------------------------------------------------------------------------------
73
- WebConsole::ColorsTest: test_.register_theme_creates_Colors_instance_for_the_block
74
- ----------------------------------------------------------------------------------
75
-  (0.0ms) rollback transaction
76
-  (0.0ms) begin transaction
77
- --------------------------------------------------------------------------------------
78
- WebConsole::ConsoleSessionTest: test_can_be_used_as_slave_as_the_methods_are_delegated
79
- --------------------------------------------------------------------------------------
80
-  (0.0ms) rollback transaction
81
-  (0.1ms) begin transaction
82
- --------------------------------------------------------------------------
83
- WebConsole::ConsoleSessionTest: test_create_gives_already_persisted_models
84
- --------------------------------------------------------------------------
85
-  (0.0ms) rollback transaction
86
-  (0.0ms) begin transaction
87
- ------------------------------------------------
88
- WebConsole::ConsoleSessionTest: test_errors_aref
89
- ------------------------------------------------
90
-  (0.0ms) rollback transaction
91
-  (0.1ms) begin transaction
92
- -----------------------------------------------------
93
- WebConsole::ConsoleSessionTest: test_find_coerces_ids
94
- -----------------------------------------------------
95
-  (0.1ms) rollback transaction
96
-  (0.1ms) begin transaction
97
- -------------------------------------------------
98
- WebConsole::ConsoleSessionTest: test_model_naming
99
- -------------------------------------------------
100
-  (0.1ms) rollback transaction
101
-  (0.0ms) begin transaction
102
- ------------------------------------------------------------------
103
- WebConsole::ConsoleSessionTest: test_no_gives_not_persisted_models
104
- ------------------------------------------------------------------
105
-  (0.0ms) rollback transaction
106
-  (0.0ms) begin transaction
107
- -------------------------------------------------------------------------------
108
- WebConsole::ConsoleSessionTest: test_not_found_exceptions_are_JSON_serializable
109
- -------------------------------------------------------------------------------
110
-  (0.0ms) rollback transaction
111
-  (0.0ms) begin transaction
112
- -----------------------------------------------
113
- WebConsole::ConsoleSessionTest: test_persisted?
114
- -----------------------------------------------
115
-  (0.1ms) rollback transaction
116
-  (0.0ms) begin transaction
117
- ----------------------------------------------------------------------------
118
- WebConsole::ConsoleSessionTest: test_persisted_models_knows_about_their_keys
119
- ----------------------------------------------------------------------------
120
-  (0.0ms) rollback transaction
121
-  (0.0ms) begin transaction
122
- -----------------------------------------------------------------------------------
123
- WebConsole::ConsoleSessionTest: test_persisted_models_knows_that_they_are_in_memory
124
- -----------------------------------------------------------------------------------
125
-  (0.0ms) rollback transaction
126
-  (0.0ms) begin transaction
127
- ---------------------------------------------------------------------------------------------
128
- WebConsole::ConsoleSessionTest: test_raises_ConsoleSession::Unavailable_on_not_found_sessions
129
- ---------------------------------------------------------------------------------------------
130
-  (0.0ms) rollback transaction
131
-  (0.0ms) begin transaction
132
- ------------------------------------------------------------------------------
133
- WebConsole::ConsoleSessionTest: test_slave_methods_are_cached_on_the_singleton
134
- ------------------------------------------------------------------------------
135
-  (0.0ms) rollback transaction
136
-  (0.0ms) begin transaction
137
- -------------------------------------------
138
- WebConsole::ConsoleSessionTest: test_to_key
139
- -------------------------------------------
140
-  (0.0ms) rollback transaction
141
-  (0.0ms) begin transaction
142
- ---------------------------------------------
143
- WebConsole::ConsoleSessionTest: test_to_param
144
- ---------------------------------------------
145
-  (0.0ms) rollback transaction
146
-  (0.0ms) begin transaction
147
- ----------------------------------------------------
148
- WebConsole::ConsoleSessionTest: test_to_partial_path
149
- ----------------------------------------------------
150
-  (0.0ms) rollback transaction
151
-  (0.0ms) begin transaction
152
- -------------------------------------------------------------------------------------
153
- WebConsole::ConsoleSessionsControllerTest: test_GET_index_creates_new_console_session
154
- -------------------------------------------------------------------------------------
155
- Processing by WebConsole::ConsoleSessionsController#index as HTML
156
- Completed 200 OK in 43ms (Views: 40.5ms | ActiveRecord: 0.0ms)
157
-  (0.1ms) rollback transaction
158
-  (0.1ms) begin transaction
159
- -------------------------------------------------------------------------------------------------
160
- WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_gives_the_slave_pending_output
161
- -------------------------------------------------------------------------------------------------
162
- Processing by WebConsole::ConsoleSessionsController#index as HTML
163
- Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms)
164
- Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
165
- Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
166
-  (0.1ms) rollback transaction
167
-  (0.1ms) begin transaction
168
- --------------------------------------------------------------------------------------------------------
169
- WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_raises_410_on_exitted_slave_processes
170
- --------------------------------------------------------------------------------------------------------
171
- Processing by WebConsole::ConsoleSessionsController#index as HTML
172
- Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
173
- Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
174
- Completed 410 Gone in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
175
-  (0.1ms) rollback transaction
176
-  (0.1ms) begin transaction
177
- ------------------------------------------------------------------------------------------
178
- WebConsole::ConsoleSessionsControllerTest: test_PUT_configuration_adjust_the_terminal_size
179
- ------------------------------------------------------------------------------------------
180
- Processing by WebConsole::ConsoleSessionsController#index as HTML
181
- Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
182
- Processing by WebConsole::ConsoleSessionsController#configuration as HTML
183
- Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
184
-  (0.1ms) rollback transaction
185
-  (0.1ms) begin transaction
186
- ----------------------------------------------------------------------------------
187
- WebConsole::ConsoleSessionsControllerTest: test_PUT_input_sends_input_to_the_slave
188
- ----------------------------------------------------------------------------------
189
- Processing by WebConsole::ConsoleSessionsController#index as HTML
190
- Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
191
- Processing by WebConsole::ConsoleSessionsController#input as HTML
192
- Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
193
-  (0.0ms) rollback transaction
194
-  (0.1ms) begin transaction
195
- -------------------------------------------------------------------------------------
196
- WebConsole::ConsoleSessionsControllerTest: test_PUT_input_validates_for_missing_input
197
- -------------------------------------------------------------------------------------
198
- Processing by WebConsole::ConsoleSessionsController#index as HTML
199
- Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms)
200
- Processing by WebConsole::ConsoleSessionsController#input as HTML
201
- Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
202
-  (0.1ms) rollback transaction
203
-  (0.1ms) begin transaction
204
- ------------------------------------------------------------------------------------
205
- WebConsole::ConsoleSessionsControllerTest: test_allows_requests_from_whitelisted_ips
206
- ------------------------------------------------------------------------------------
207
- Processing by WebConsole::ConsoleSessionsController#index as HTML
208
- Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.0ms)
209
-  (0.1ms) rollback transaction
210
-  (0.0ms) begin transaction
211
- ----------------------------------------------------------------------------------------
212
- WebConsole::ConsoleSessionsControllerTest: test_blocks_requests_from_non-whitelisted_ips
213
- ----------------------------------------------------------------------------------------
214
- Processing by WebConsole::ConsoleSessionsController#index as HTML
215
- Filter chain halted as :prevent_unauthorized_requests! rendered or redirected
216
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
217
-  (0.1ms) rollback transaction
218
-  (0.1ms) begin transaction
219
- --------------------------------------------------------------------
220
- WebConsole::ConsoleSessionsControllerTest: test_index_generated_path
221
- --------------------------------------------------------------------
222
-  (0.0ms) rollback transaction
223
-  (0.1ms) begin transaction
224
- -------------------------------------------------------------------
225
- WebConsole::ConsoleSessionsControllerTest: test_index_is_successful
226
- -------------------------------------------------------------------
227
- Processing by WebConsole::ConsoleSessionsController#index as HTML
228
- Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
229
-  (0.0ms) rollback transaction
230
-  (0.0ms) begin transaction
231
- -----------------------------------------------------------------------
232
- WebConsole::ControllerHelperTest: test_doesn't_inject_in_non_HTML_views
233
- -----------------------------------------------------------------------
234
- Processing by WebConsole::ControllerHelperTest::TestController#doesnt_render_console_on_non_html_requests as HTML
235
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
236
-  (0.1ms) rollback transaction
237
-  (0.0ms) begin transaction
238
- --------------------------------------------------------------------
239
- WebConsole::ControllerHelperTest: test_injects_a_console_into_a_view
240
- --------------------------------------------------------------------
241
- Processing by WebConsole::ControllerHelperTest::TestController#render_console_ontop_of_text as HTML
242
- Rendered /Users/rafaelfranca/src/rails/web-console/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.8ms)
243
- Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)
244
-  (0.1ms) rollback transaction
245
-  (0.0ms) begin transaction
246
- -----------------------------------------------------------------
247
- WebConsole::ControllerHelperTest: test_keeps_the_original_content
248
- -----------------------------------------------------------------
249
- Processing by WebConsole::ControllerHelperTest::TestController#render_console_ontop_of_text as HTML
250
- Rendered /Users/rafaelfranca/src/rails/web-console/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.1ms)
251
- Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
252
-  (0.1ms) rollback transaction
253
-  (0.0ms) begin transaction
254
- ----------------------------------------------------------------
255
- WebConsole::ControllerHelperTest: test_renders_console_only_once
256
- ----------------------------------------------------------------
257
- Processing by WebConsole::ControllerHelperTest::TestController#renders_console_only_once as HTML
258
- Rendered /Users/rafaelfranca/src/rails/web-console/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.1ms)
259
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
260
-  (0.0ms) rollback transaction
261
-  (0.0ms) begin transaction
262
- -----------------------------------------------------------------------------
263
- WebConsole::EngineTest: test_blank_commands_are_expanded_to_the_rails_console
264
- -----------------------------------------------------------------------------
265
-  (0.2ms) begin transaction
266
- ------------------------------------------------------
267
- WebConsole::EngineTest: test_custom_default_mount_path
268
- ------------------------------------------------------
269
-  (0.2ms) begin transaction
270
- ---------------------------------------------------
271
- WebConsole::EngineTest: test_disabling_automounting
272
- ---------------------------------------------------
273
-  (0.1ms) begin transaction
274
- ---------------------------------------------------------------
275
- WebConsole::EngineTest: test_present_commands_are_not_processed
276
- ---------------------------------------------------------------
277
-  (0.1ms) begin transaction
278
- --------------------------------------------------------
279
- WebConsole::EngineTest: test_whitelist_multiple_networks
280
- --------------------------------------------------------
281
-  (0.2ms) begin transaction
282
- -----------------------------------------------------
283
- WebConsole::EngineTest: test_whitelist_whole_networks
284
- -----------------------------------------------------
285
-  (0.2ms) begin transaction
286
- -----------------------------------------------------------------------
287
- WebConsole::EngineTest: test_whitelisted_ips.include?_coerces_to_IPAddr
288
- -----------------------------------------------------------------------
289
-  (0.1ms) begin transaction
290
- -----------------------------------------------------------------------
291
- WebConsole::EngineTest: test_whitelisted_ips.include?_works_with_IPAddr
292
- -----------------------------------------------------------------------
293
-  (0.3ms) begin transaction
294
- ------------------------------------------------------------------
295
- WebConsole::EngineTest: test_whitelisted_ips_are_courced_to_IPAddr
296
- ------------------------------------------------------------------
297
-  (0.2ms) begin transaction
298
- -----------------------------------------------------------------------------
299
- WebConsole::EngineTest: test_whitelisted_ips_are_normalized_and_unique_IPAddr
300
- -----------------------------------------------------------------------------
301
-  (0.2ms) begin transaction
302
- ------------------------------------------------------------------------
303
- WebConsole::EngineTest: test_whitelisted_ips_with_IPv6_format_as_default
304
- ------------------------------------------------------------------------
305
-  (0.2ms) begin transaction
306
- ----------------------------------------------------------------------------------------
307
- WebConsole::ExceptionTest: test_#bindings_all_the_bindings_of_where_the_error_originated
308
- ----------------------------------------------------------------------------------------
309
-  (0.0ms) rollback transaction
310
-  (0.0ms) begin transaction
311
- -------------------------------------------------------------
312
- WebConsole::ExceptionTest: test_#bindings_goes_down_the_stack
313
- -------------------------------------------------------------
314
-  (0.0ms) rollback transaction
315
-  (0.1ms) begin transaction
316
- -----------------------------------------------------------------------
317
- WebConsole::REPLSessionTest: test_create_gives_already_persisted_models
318
- -----------------------------------------------------------------------
319
-  (0.0ms) rollback transaction
320
-  (0.0ms) begin transaction
321
- --------------------------------------------------
322
- WebConsole::REPLSessionTest: test_find_coerces_ids
323
- --------------------------------------------------
324
-  (0.0ms) rollback transaction
325
-  (0.0ms) begin transaction
326
- ---------------------------------------------------------------
327
- WebConsole::REPLSessionTest: test_no_gives_not_persisted_models
328
- ---------------------------------------------------------------
329
-  (0.0ms) rollback transaction
330
-  (0.0ms) begin transaction
331
- ----------------------------------------------------------------------------
332
- WebConsole::REPLSessionTest: test_not_found_exceptions_are_JSON_serializable
333
- ----------------------------------------------------------------------------
334
-  (0.0ms) rollback transaction
335
-  (0.0ms) begin transaction
336
- ------------------------------------------------------------------------------------------------
337
- WebConsole::REPLSessionTest: test_raises_WebConsole::REPLSession::NotFound_on_not_found_sessions
338
- ------------------------------------------------------------------------------------------------
339
-  (0.0ms) rollback transaction
340
-  (0.0ms) begin transaction
341
- ----------------------------------------------------------------
342
- WebConsole::SlaveTest: test_#configure_changes_@input_dimentions
343
- ----------------------------------------------------------------
344
-  (0.0ms) rollback transaction
345
-  (0.0ms) begin transaction
346
- -------------------------------------------------------------------------------------------
347
- WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_height_is_zero
348
- -------------------------------------------------------------------------------------------
349
-  (0.0ms) rollback transaction
350
-  (0.0ms) begin transaction
351
- ------------------------------------------------------------------------------------------
352
- WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_width_is_zero
353
- ------------------------------------------------------------------------------------------
354
-  (0.0ms) rollback transaction
355
-  (0.0ms) begin transaction
356
- ---------------------------------------------------------------------------
357
- WebConsole::SlaveTest: test_#dispose!_can_reraise_Errno::ESRCH_if_requested
358
- ---------------------------------------------------------------------------
359
-  (0.0ms) rollback transaction
360
-  (0.0ms) begin transaction
361
- ----------------------------------------------------------------------------------
362
- WebConsole::SlaveTest: test_#dispose!_sends_SIGKILL_to_the_process_and_detaches_it
363
- ----------------------------------------------------------------------------------
364
-  (0.0ms) rollback transaction
365
-  (0.0ms) begin transaction
366
- --------------------------------------------------------------------------
367
- WebConsole::SlaveTest: test_#dispose_can_reraise_Errno::ESRCH_if_requested
368
- --------------------------------------------------------------------------
369
-  (0.0ms) rollback transaction
370
-  (0.0ms) begin transaction
371
- ---------------------------------------------------------------------------------
372
- WebConsole::SlaveTest: test_#dispose_sends_SIGTERM_to_the_process_and_detaches_it
373
- ---------------------------------------------------------------------------------
374
-  (0.1ms) rollback transaction
375
-  (0.0ms) begin transaction
376
- --------------------------------------------------------------------------
377
- WebConsole::SlaveTest: test_#pending_output_always_encodes_output_in_UTF-8
378
- --------------------------------------------------------------------------
379
-  (0.1ms) rollback transaction
380
-  (0.0ms) begin transaction
381
- ---------------------------------------------------------------------------------------------
382
- WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_EOFError
383
- ---------------------------------------------------------------------------------------------
384
-  (0.0ms) rollback transaction
385
-  (0.0ms) begin transaction
386
- -----------------------------------------------------------------------------------------------
387
- WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_Errno::EIO
388
- -----------------------------------------------------------------------------------------------
389
-  (0.0ms) rollback transaction
390
-  (0.1ms) begin transaction
391
- ------------------------------------------------------------------------------------
392
- WebConsole::SlaveTest: test_#pending_output_returns_a_string_with_the_current_output
393
- ------------------------------------------------------------------------------------
394
-  (0.0ms) rollback transaction
395
-  (0.1ms) begin transaction
396
- ----------------------------------------------------------------------------
397
- WebConsole::SlaveTest: test_#pending_output_returns_nil_on_no_pending_output
398
- ----------------------------------------------------------------------------
399
-  (0.0ms) rollback transaction
400
-  (0.1ms) begin transaction
401
- -------------------------------------------------------------------------
402
- WebConsole::SlaveTest: test_#send_input_raises_ArgumentError_on_bad_input
403
- -------------------------------------------------------------------------
404
-  (0.0ms) rollback transaction
405
-  (0.3ms) begin transaction
406
- --------------------------------------------------------------------------------------------------------
407
- ActionDispatch::ExceptionWrapperTest: test_#extract_sources_fetches_source_fragments_for_every_backtrace
408
- --------------------------------------------------------------------------------------------------------
409
-  (0.1ms) rollback transaction
410
-  (0.1ms) begin transaction
411
- ---------------------------------------------------
412
- REPLTest: test_preserves_the_session_in_the_binding
413
- ---------------------------------------------------
414
-  (0.0ms) rollback transaction
415
-  (0.1ms) begin transaction
416
- --------------------------------
417
- REPLTest: test_prompt_is_present
418
- --------------------------------
419
-  (0.0ms) rollback transaction
420
-  (0.1ms) begin transaction
421
- ---------------------------------------------------------
422
- REPLTest: test_sending_input_returns_the_result_as_output
423
- ---------------------------------------------------------
424
-  (0.0ms) rollback transaction
425
-  (0.1ms) begin transaction
426
- ----------------------------------------------------------
427
- REPLTest: test_session_preservation_requires_same_bindings
428
- ----------------------------------------------------------
429
-  (0.0ms) rollback transaction
430
-  (0.0ms) begin transaction
431
- --------------------------------------------------------------------
432
- WebConsole::ColorsTest: test_#background=_is_an_alias_of_#background
433
- --------------------------------------------------------------------
434
-  (0.0ms) rollback transaction
435
-  (0.1ms) begin transaction
436
- --------------------------------------------------------------------
437
- WebConsole::ColorsTest: test_#background_can_be_explicitly_specified
438
- --------------------------------------------------------------------
439
-  (0.0ms) rollback transaction
440
-  (0.1ms) begin transaction
441
- ----------------------------------------------------------------------------
442
- WebConsole::ColorsTest: test_#background_is_the_first_color_if_not_specified
443
- ----------------------------------------------------------------------------
444
-  (0.0ms) rollback transaction
445
-  (0.0ms) begin transaction
446
- -----------------------------------------------
447
- WebConsole::ColorsTest: test_#default_is_:light
448
- -----------------------------------------------
449
-  (0.0ms) rollback transaction
450
-  (0.1ms) begin transaction
451
- --------------------------------------------------------------------
452
- WebConsole::ColorsTest: test_#foreground=_is_an_alias_of_#foreground
453
- --------------------------------------------------------------------
454
-  (0.0ms) rollback transaction
455
-  (0.0ms) begin transaction
456
- --------------------------------------------------------------------
457
- WebConsole::ColorsTest: test_#foreground_can_be_explicitly_specified
458
- --------------------------------------------------------------------
459
-  (0.0ms) rollback transaction
460
-  (0.0ms) begin transaction
461
- ---------------------------------------------------------------------------
462
- WebConsole::ColorsTest: test_#foreground_is_the_last_color_if_not_specified
463
- ---------------------------------------------------------------------------
464
-  (0.0ms) rollback transaction
465
-  (0.0ms) begin transaction
466
- --------------------------------------------------------------------------------
467
- WebConsole::ColorsTest: test_#to_json_includes_the_background_and_the_foreground
468
- --------------------------------------------------------------------------------
469
-  (0.0ms) rollback transaction
470
-  (0.1ms) begin transaction
471
- -----------------------------------------------------------
472
- WebConsole::ColorsTest: test_.[]_is_an_alias_for_.themes#[]
473
- -----------------------------------------------------------
474
-  (0.0ms) rollback transaction
475
-  (0.0ms) begin transaction
476
- ----------------------------------------------------------------------------------
477
- WebConsole::ColorsTest: test_.register_theme_creates_Colors_instance_for_the_block
478
- ----------------------------------------------------------------------------------
479
-  (0.0ms) rollback transaction
480
-  (0.0ms) begin transaction
481
- --------------------------------------------------------------------------------------
482
- WebConsole::ConsoleSessionTest: test_can_be_used_as_slave_as_the_methods_are_delegated
483
- --------------------------------------------------------------------------------------
484
-  (0.0ms) rollback transaction
485
-  (0.0ms) begin transaction
486
- --------------------------------------------------------------------------
487
- WebConsole::ConsoleSessionTest: test_create_gives_already_persisted_models
488
- --------------------------------------------------------------------------
489
-  (0.0ms) rollback transaction
490
-  (0.0ms) begin transaction
491
- ------------------------------------------------
492
- WebConsole::ConsoleSessionTest: test_errors_aref
493
- ------------------------------------------------
494
-  (0.0ms) rollback transaction
495
-  (0.0ms) begin transaction
496
- -----------------------------------------------------
497
- WebConsole::ConsoleSessionTest: test_find_coerces_ids
498
- -----------------------------------------------------
499
-  (0.0ms) rollback transaction
500
-  (0.0ms) begin transaction
501
- -------------------------------------------------
502
- WebConsole::ConsoleSessionTest: test_model_naming
503
- -------------------------------------------------
504
-  (0.1ms) rollback transaction
505
-  (0.0ms) begin transaction
506
- ------------------------------------------------------------------
507
- WebConsole::ConsoleSessionTest: test_no_gives_not_persisted_models
508
- ------------------------------------------------------------------
509
-  (0.0ms) rollback transaction
510
-  (0.0ms) begin transaction
511
- -------------------------------------------------------------------------------
512
- WebConsole::ConsoleSessionTest: test_not_found_exceptions_are_JSON_serializable
513
- -------------------------------------------------------------------------------
514
-  (0.1ms) rollback transaction
515
-  (0.0ms) begin transaction
516
- -----------------------------------------------
517
- WebConsole::ConsoleSessionTest: test_persisted?
518
- -----------------------------------------------
519
-  (0.0ms) rollback transaction
520
-  (0.0ms) begin transaction
521
- ----------------------------------------------------------------------------
522
- WebConsole::ConsoleSessionTest: test_persisted_models_knows_about_their_keys
523
- ----------------------------------------------------------------------------
524
-  (0.0ms) rollback transaction
525
-  (0.0ms) begin transaction
526
- -----------------------------------------------------------------------------------
527
- WebConsole::ConsoleSessionTest: test_persisted_models_knows_that_they_are_in_memory
528
- -----------------------------------------------------------------------------------
529
-  (0.0ms) rollback transaction
530
-  (0.0ms) begin transaction
531
- ---------------------------------------------------------------------------------------------
532
- WebConsole::ConsoleSessionTest: test_raises_ConsoleSession::Unavailable_on_not_found_sessions
533
- ---------------------------------------------------------------------------------------------
534
-  (0.0ms) rollback transaction
535
-  (0.0ms) begin transaction
536
- ------------------------------------------------------------------------------
537
- WebConsole::ConsoleSessionTest: test_slave_methods_are_cached_on_the_singleton
538
- ------------------------------------------------------------------------------
539
-  (0.0ms) rollback transaction
540
-  (0.0ms) begin transaction
541
- -------------------------------------------
542
- WebConsole::ConsoleSessionTest: test_to_key
543
- -------------------------------------------
544
-  (0.0ms) rollback transaction
545
-  (0.0ms) begin transaction
546
- ---------------------------------------------
547
- WebConsole::ConsoleSessionTest: test_to_param
548
- ---------------------------------------------
549
-  (0.0ms) rollback transaction
550
-  (0.0ms) begin transaction
551
- ----------------------------------------------------
552
- WebConsole::ConsoleSessionTest: test_to_partial_path
553
- ----------------------------------------------------
554
-  (0.0ms) rollback transaction
555
-  (0.0ms) begin transaction
556
- -------------------------------------------------------------------------------------
557
- WebConsole::ConsoleSessionsControllerTest: test_GET_index_creates_new_console_session
558
- -------------------------------------------------------------------------------------
559
- Processing by WebConsole::ConsoleSessionsController#index as HTML
560
- Completed 200 OK in 60ms (Views: 58.9ms | ActiveRecord: 0.0ms)
561
-  (0.1ms) rollback transaction
562
-  (0.0ms) begin transaction
563
- -------------------------------------------------------------------------------------------------
564
- WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_gives_the_slave_pending_output
565
- -------------------------------------------------------------------------------------------------
566
- Processing by WebConsole::ConsoleSessionsController#index as HTML
567
- Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.0ms)
568
- Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
569
- Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
570
-  (0.1ms) rollback transaction
571
-  (0.0ms) begin transaction
572
- --------------------------------------------------------------------------------------------------------
573
- WebConsole::ConsoleSessionsControllerTest: test_GET_pending_output_raises_410_on_exitted_slave_processes
574
- --------------------------------------------------------------------------------------------------------
575
- Processing by WebConsole::ConsoleSessionsController#index as HTML
576
- Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms)
577
- Processing by WebConsole::ConsoleSessionsController#pending_output as HTML
578
- Completed 410 Gone in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
579
-  (0.0ms) rollback transaction
580
-  (0.1ms) begin transaction
581
- ------------------------------------------------------------------------------------------
582
- WebConsole::ConsoleSessionsControllerTest: test_PUT_configuration_adjust_the_terminal_size
583
- ------------------------------------------------------------------------------------------
584
- Processing by WebConsole::ConsoleSessionsController#index as HTML
585
- Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
586
- Processing by WebConsole::ConsoleSessionsController#configuration as HTML
587
- Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
588
-  (0.1ms) rollback transaction
589
-  (0.1ms) begin transaction
590
- ----------------------------------------------------------------------------------
591
- WebConsole::ConsoleSessionsControllerTest: test_PUT_input_sends_input_to_the_slave
592
- ----------------------------------------------------------------------------------
593
- Processing by WebConsole::ConsoleSessionsController#index as HTML
594
- Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
595
- Processing by WebConsole::ConsoleSessionsController#input as HTML
596
- Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
597
-  (0.1ms) rollback transaction
598
-  (0.1ms) begin transaction
599
- -------------------------------------------------------------------------------------
600
- WebConsole::ConsoleSessionsControllerTest: test_PUT_input_validates_for_missing_input
601
- -------------------------------------------------------------------------------------
602
- Processing by WebConsole::ConsoleSessionsController#index as HTML
603
- Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
604
- Processing by WebConsole::ConsoleSessionsController#input as HTML
605
- Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
606
-  (0.1ms) rollback transaction
607
-  (0.1ms) begin transaction
608
- ------------------------------------------------------------------------------------
609
- WebConsole::ConsoleSessionsControllerTest: test_allows_requests_from_whitelisted_ips
610
- ------------------------------------------------------------------------------------
611
- Processing by WebConsole::ConsoleSessionsController#index as HTML
612
- Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.0ms)
613
-  (0.1ms) rollback transaction
614
-  (0.1ms) begin transaction
615
- ----------------------------------------------------------------------------------------
616
- WebConsole::ConsoleSessionsControllerTest: test_blocks_requests_from_non-whitelisted_ips
617
- ----------------------------------------------------------------------------------------
618
- Processing by WebConsole::ConsoleSessionsController#index as HTML
619
- Filter chain halted as :prevent_unauthorized_requests! rendered or redirected
620
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
621
-  (0.0ms) rollback transaction
622
-  (0.1ms) begin transaction
623
- --------------------------------------------------------------------
624
- WebConsole::ConsoleSessionsControllerTest: test_index_generated_path
625
- --------------------------------------------------------------------
626
-  (0.0ms) rollback transaction
627
-  (0.1ms) begin transaction
628
- -------------------------------------------------------------------
629
- WebConsole::ConsoleSessionsControllerTest: test_index_is_successful
630
- -------------------------------------------------------------------
631
- Processing by WebConsole::ConsoleSessionsController#index as HTML
632
- Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
633
-  (0.0ms) rollback transaction
634
-  (0.0ms) begin transaction
635
- -----------------------------------------------------------------------
636
- WebConsole::ControllerHelperTest: test_doesn't_inject_in_non_HTML_views
637
- -----------------------------------------------------------------------
638
- Processing by WebConsole::ControllerHelperTest::TestController#doesnt_render_console_on_non_html_requests as HTML
639
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
640
-  (0.0ms) rollback transaction
641
-  (0.1ms) begin transaction
642
- --------------------------------------------------------------------
643
- WebConsole::ControllerHelperTest: test_injects_a_console_into_a_view
644
- --------------------------------------------------------------------
645
- Processing by WebConsole::ControllerHelperTest::TestController#render_console_ontop_of_text as HTML
646
- Rendered /Users/rafaelfranca/src/rails/web-console/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.8ms)
647
- Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms)
648
-  (0.1ms) rollback transaction
649
-  (0.1ms) begin transaction
650
- -----------------------------------------------------------------
651
- WebConsole::ControllerHelperTest: test_keeps_the_original_content
652
- -----------------------------------------------------------------
653
- Processing by WebConsole::ControllerHelperTest::TestController#render_console_ontop_of_text as HTML
654
- Rendered /Users/rafaelfranca/src/rails/web-console/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.1ms)
655
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
656
-  (0.1ms) rollback transaction
657
-  (0.1ms) begin transaction
658
- ----------------------------------------------------------------
659
- WebConsole::ControllerHelperTest: test_renders_console_only_once
660
- ----------------------------------------------------------------
661
- Processing by WebConsole::ControllerHelperTest::TestController#renders_console_only_once as HTML
662
- Rendered /Users/rafaelfranca/src/rails/web-console/lib/action_dispatch/templates/rescues/_web_console.html.erb (0.1ms)
663
- Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
664
-  (0.0ms) rollback transaction
665
-  (0.0ms) begin transaction
666
- -----------------------------------------------------------------------------
667
- WebConsole::EngineTest: test_blank_commands_are_expanded_to_the_rails_console
668
- -----------------------------------------------------------------------------
669
-  (0.2ms) begin transaction
670
- ------------------------------------------------------
671
- WebConsole::EngineTest: test_custom_default_mount_path
672
- ------------------------------------------------------
673
-  (0.2ms) begin transaction
674
- ---------------------------------------------------
675
- WebConsole::EngineTest: test_disabling_automounting
676
- ---------------------------------------------------
677
-  (0.1ms) begin transaction
678
- ---------------------------------------------------------------
679
- WebConsole::EngineTest: test_present_commands_are_not_processed
680
- ---------------------------------------------------------------
681
-  (0.2ms) begin transaction
682
- --------------------------------------------------------
683
- WebConsole::EngineTest: test_whitelist_multiple_networks
684
- --------------------------------------------------------
685
-  (0.2ms) begin transaction
686
- -----------------------------------------------------
687
- WebConsole::EngineTest: test_whitelist_whole_networks
688
- -----------------------------------------------------
689
-  (0.2ms) begin transaction
690
- -----------------------------------------------------------------------
691
- WebConsole::EngineTest: test_whitelisted_ips.include?_coerces_to_IPAddr
692
- -----------------------------------------------------------------------
693
-  (0.2ms) begin transaction
694
- -----------------------------------------------------------------------
695
- WebConsole::EngineTest: test_whitelisted_ips.include?_works_with_IPAddr
696
- -----------------------------------------------------------------------
697
-  (0.1ms) begin transaction
698
- ------------------------------------------------------------------
699
- WebConsole::EngineTest: test_whitelisted_ips_are_courced_to_IPAddr
700
- ------------------------------------------------------------------
701
-  (0.1ms) begin transaction
702
- -----------------------------------------------------------------------------
703
- WebConsole::EngineTest: test_whitelisted_ips_are_normalized_and_unique_IPAddr
704
- -----------------------------------------------------------------------------
705
-  (0.1ms) begin transaction
706
- ------------------------------------------------------------------------
707
- WebConsole::EngineTest: test_whitelisted_ips_with_IPv6_format_as_default
708
- ------------------------------------------------------------------------
709
-  (0.2ms) begin transaction
710
- ----------------------------------------------------------------------------------------
711
- WebConsole::ExceptionTest: test_#bindings_all_the_bindings_of_where_the_error_originated
712
- ----------------------------------------------------------------------------------------
713
-  (0.0ms) rollback transaction
714
-  (0.0ms) begin transaction
715
- -------------------------------------------------------------
716
- WebConsole::ExceptionTest: test_#bindings_goes_down_the_stack
717
- -------------------------------------------------------------
718
-  (0.0ms) rollback transaction
719
-  (0.0ms) begin transaction
720
- -----------------------------------------------------------------------
721
- WebConsole::REPLSessionTest: test_create_gives_already_persisted_models
722
- -----------------------------------------------------------------------
723
-  (0.0ms) rollback transaction
724
-  (0.0ms) begin transaction
725
- -----------------------------------------------------------------
726
- WebConsole::REPLSessionTest: test_find_returns_a_persisted_object
727
- -----------------------------------------------------------------
728
-  (0.0ms) rollback transaction
729
-  (0.1ms) begin transaction
730
- ---------------------------------------------------------------
731
- WebConsole::REPLSessionTest: test_no_gives_not_persisted_models
732
- ---------------------------------------------------------------
733
-  (0.0ms) rollback transaction
734
-  (0.0ms) begin transaction
735
- ----------------------------------------------------------------------------
736
- WebConsole::REPLSessionTest: test_not_found_exceptions_are_JSON_serializable
737
- ----------------------------------------------------------------------------
738
-  (0.0ms) rollback transaction
739
-  (0.0ms) begin transaction
740
- ------------------------------------------------------------------------------------------------
741
- WebConsole::REPLSessionTest: test_raises_WebConsole::REPLSession::NotFound_on_not_found_sessions
742
- ------------------------------------------------------------------------------------------------
743
-  (0.0ms) rollback transaction
744
-  (0.0ms) begin transaction
745
- ----------------------------------------------------------------
746
- WebConsole::SlaveTest: test_#configure_changes_@input_dimentions
747
- ----------------------------------------------------------------
748
-  (0.0ms) rollback transaction
749
-  (0.0ms) begin transaction
750
- -------------------------------------------------------------------------------------------
751
- WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_height_is_zero
752
- -------------------------------------------------------------------------------------------
753
-  (0.0ms) rollback transaction
754
-  (0.0ms) begin transaction
755
- ------------------------------------------------------------------------------------------
756
- WebConsole::SlaveTest: test_#configure_only_changes_the_@input_dimentions_if_width_is_zero
757
- ------------------------------------------------------------------------------------------
758
-  (0.1ms) rollback transaction
759
-  (0.0ms) begin transaction
760
- ---------------------------------------------------------------------------
761
- WebConsole::SlaveTest: test_#dispose!_can_reraise_Errno::ESRCH_if_requested
762
- ---------------------------------------------------------------------------
763
-  (0.0ms) rollback transaction
764
-  (0.0ms) begin transaction
765
- ----------------------------------------------------------------------------------
766
- WebConsole::SlaveTest: test_#dispose!_sends_SIGKILL_to_the_process_and_detaches_it
767
- ----------------------------------------------------------------------------------
768
-  (0.0ms) rollback transaction
769
-  (0.0ms) begin transaction
770
- --------------------------------------------------------------------------
771
- WebConsole::SlaveTest: test_#dispose_can_reraise_Errno::ESRCH_if_requested
772
- --------------------------------------------------------------------------
773
-  (0.0ms) rollback transaction
774
-  (0.1ms) begin transaction
775
- ---------------------------------------------------------------------------------
776
- WebConsole::SlaveTest: test_#dispose_sends_SIGTERM_to_the_process_and_detaches_it
777
- ---------------------------------------------------------------------------------
778
-  (0.1ms) rollback transaction
779
-  (0.0ms) begin transaction
780
- --------------------------------------------------------------------------
781
- WebConsole::SlaveTest: test_#pending_output_always_encodes_output_in_UTF-8
782
- --------------------------------------------------------------------------
783
-  (0.0ms) rollback transaction
784
-  (0.0ms) begin transaction
785
- ---------------------------------------------------------------------------------------------
786
- WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_EOFError
787
- ---------------------------------------------------------------------------------------------
788
-  (0.0ms) rollback transaction
789
-  (0.0ms) begin transaction
790
- -----------------------------------------------------------------------------------------------
791
- WebConsole::SlaveTest: test_#pending_output_raises_Slave::Closed_when_the_end_raises_Errno::EIO
792
- -----------------------------------------------------------------------------------------------
793
-  (0.0ms) rollback transaction
794
-  (0.1ms) begin transaction
795
- ------------------------------------------------------------------------------------
796
- WebConsole::SlaveTest: test_#pending_output_returns_a_string_with_the_current_output
797
- ------------------------------------------------------------------------------------
798
-  (0.0ms) rollback transaction
799
-  (0.1ms) begin transaction
800
- ----------------------------------------------------------------------------
801
- WebConsole::SlaveTest: test_#pending_output_returns_nil_on_no_pending_output
802
- ----------------------------------------------------------------------------
803
-  (0.0ms) rollback transaction
804
-  (0.1ms) begin transaction
805
- -------------------------------------------------------------------------
806
- WebConsole::SlaveTest: test_#send_input_raises_ArgumentError_on_bad_input
807
- -------------------------------------------------------------------------
808
-  (0.0ms) rollback transaction