Skip to content

Instantly share code, notes, and snippets.

@dalpo
Last active June 23, 2016 08:54
Show Gist options
  • Save dalpo/66824995f6b3509acad444d46fa42da2 to your computer and use it in GitHub Desktop.
Save dalpo/66824995f6b3509acad444d46fa42da2 to your computer and use it in GitHub Desktop.
Failures:
1) Admin::ColorPalettesController POST #create with NOT authenticated user should redirect to the login page
Failure/Error: post :create, params: { color_palette: valid_attributes }
ActionDispatch::IllegalStateError:
header already sent
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_dispatch/http/response.rb:44:in `[]='
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_dispatch/http/response.rb:180:in `set_header'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_dispatch/http/response.rb:420:in `set_content_type'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_dispatch/http/response.rb:228:in `content_type='
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal.rb:149:in `content_type='
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/rendering.rb:126:in `_process_options'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/streaming.rb:200:in `_process_options'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionview-5.0.0.rc2/lib/action_view/rendering.rb:82:in `render_to_body'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/renderers.rb:144:in `render_to_body'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/abstract_controller/rendering.rb:26:in `render'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/rendering.rb:36:in `render'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc2/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.0.rc2/lib/active_support/core_ext/benchmark.rb:12:in `ms'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.rc2/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/metal/instrumentation.rb:43:in `render'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/devise-4.0.1/lib/devise/test_helpers.rb:117:in `_process_unauthenticated'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/devise-4.0.1/lib/devise/test_helpers.rb:91:in `_catch_warden'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/devise-4.0.1/lib/devise/test_helpers.rb:19:in `process'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/gon-6.0.1/lib/gon/spec_helpers.rb:15:in `process'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/test_case.rb:629:in `process_with_kwargs'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.rc2/lib/action_controller/test_case.rb:389:in `post'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/rails-controller-testing-0.1.1/lib/rails/controller/testing/integration.rb:12:in `block (2 levels) in <module:Integration>'
# ./spec/controllers/admin/color_palettes_controller_spec.rb:197:in `block (4 levels) in <top (required)>'
# ./spec/support/database_cleaner.rb:11:in `block (3 levels) in <top (required)>'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/database_cleaner-1.5.2/lib/database_cleaner/generic/base.rb:16:in `cleaning'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/database_cleaner-1.5.2/lib/database_cleaner/base.rb:98:in `cleaning'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/database_cleaner-1.5.2/lib/database_cleaner/configuration.rb:86:in `block (2 levels) in cleaning'
# /home/dalpo/.rvm/gems/ruby-2.3.1/gems/database_cleaner-1.5.2/lib/database_cleaner/configuration.rb:87:in `cleaning'
# ./spec/support/database_cleaner.rb:10:in `block (2 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment