Skip to content

Instantly share code, notes, and snippets.

@millisami
Last active December 20, 2015 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save millisami/6111362 to your computer and use it in GitHub Desktop.
Save millisami/6111362 to your computer and use it in GitHub Desktop.
test.rb
zeus test spec/acceptance/learning_areas_spec.rb:22
No DRb server is running. Running in local process instead ...
Run options: include {:locations=>{"./spec/acceptance/learning_areas_spec.rb"=>[22]}}
Learning area pages
Slow factory: "child" using strategy "create"
Slow factory: "child" using strategy "create"
cache: [GET /videos/1] miss
cache: [GET /assets/head.js] miss, store
cache: [GET /assets/application.css] miss, store
cache: [GET /assets/sparkon-logo.png] miss, store
cache: [GET /assets/raty-star.png] miss, store
cache: [GET /uploads/learning_course/thumbnails/1/small_thumbnail.png] miss, store
cache: [GET /media/W1siZiIsIi00YTgzYWZiZi00YTQwLTRiODQtOGM3My04OGUwNjJjZGVhMzgtNTMweDUzMC5wbmciXSxbInAiLCJ0aHVtYiIsIjM0eDM0Il1d?sha=a2f12641] miss, store
cache: [GET /assets/down_arrow.png] miss, store
cache: [GET /uploads/learning_resource/thumbnails/1/small_thumbnail.png] miss, store
cache: [GET /assets/application.js] miss, store
cache: [GET /assets/default-thumbnail.jpg] miss, store
cache: [GET /assets/circular-play-button.png] miss, store
cache: [GET /assets/MinionPro-It.otf] miss, store
cache: [GET /assets/sparkon_half_big_star.jpg] miss, store
cache: [GET /assets/MyriadPro-Semibold.otf] miss, store
cache: [GET /assets/MinionPro-Regular.otf] miss, store
cache: [GET /assets/MyriadPro-Regular.otf] miss, store
cache: [GET /assets/fontawesome-webfont.woff] miss, store
cache: [GET /assets/MinionPro-Bold.otf] miss, store
cache: [GET /assets/jquery.raty/black/star-off.png] miss, store
cache: [GET /favicon.ico] miss, store
the user sees the category details with its resources
Top 1 slowest examples (29.19 seconds, 100.0% of total time):
Learning area pages the user sees the category details with its resources
29.19 seconds ./spec/acceptance/learning_areas_spec.rb:22
Finished in 29.63 seconds
1 example, 0 failures
Ror::Application.configure do
config.cache_classes = true
# Configure static asset server for tests with Cache-Control for performance
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
# Log error messages when you accidentally call methods on nil
config.whiny_nils = true
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Raise exceptions instead of rendering exception templates
config.action_dispatch.show_exceptions = true
# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
if ENV['MAILCATCHER']
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.register_interceptor(BadEmailInterceptor)
ActionMailer::Base.smtp_settings =
{
:address => 'localhost', # Local smtp server with the gem mailcatcher
:port => 1025
}
else
config.action_mailer.delivery_method = :test
end
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
# Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
config.assets.allow_debugging = true
# So the AppSettings cache is not shared with development
config.cache_store = :memory_store
config.action_dispatch.rack_cache = {:metastore => "rails:/", :entitystore => "rails:/", :verbose => false}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment