Created
May 21, 2018 11:25
-
-
Save CodePint/3bfb0525a56b9758f043cc3df4fe0f0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[10] pry(#<RSpec::ExampleGroups::GymsController::POSTCreate>)> post :create, params:{gym: gym_create | |
[10] pry(#<RSpec::ExampleGroups::GymsController::POSTCreate>)* } | |
not saved | |
=> #<ActionDispatch::TestResponse:0x0000000264c498 | |
@cache_control={}, | |
@committed=true, | |
@cv=#<MonitorMixin::ConditionVariable:0x0000000264a648 @cond=#<Thread::ConditionVariable:0x00000002649748>, @monitor=#<ActionDispatch::TestResponse:0x0000000264c498 ...>>, | |
@header={"X-Frame-Options"=>"SAMEORIGIN", "X-XSS-Protection"=>"1; mode=block", "X-Content-Type-Options"=>"nosniff", "Content-Type"=>"text/html; charset=utf-8"}, | |
@mon_count=0, | |
@mon_mutex=#<Thread::Mutex:0x0000000264a9e0>, | |
@mon_owner=nil, | |
@request= | |
#<ActionController::TestRequest:0x0000000264d168 | |
@controller_class=GymsController, | |
@custom_param_parsers={:xml=>#<Proc:0x0000000264cee8@/home/rouget430/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.6/lib/action_controller/test_case.rb:58 (lambda)>}, | |
@env= | |
{"rack.version"=>[1, 3], | |
"rack.input"=>#<StringIO:0x000000026347a8>, | |
"rack.errors"=>#<StringIO:0x000000048b5458>, | |
"rack.multithread"=>true, | |
"rack.multiprocess"=>true, | |
"rack.run_once"=>false, | |
"REQUEST_METHOD"=>"POST", | |
"SERVER_NAME"=>"example.org", | |
"SERVER_PORT"=>"80", | |
"QUERY_STRING"=>"", | |
"rack.url_scheme"=>"http", | |
"HTTPS"=>"off", | |
"SCRIPT_NAME"=>"", | |
"CONTENT_LENGTH"=>"180", | |
"HTTP_HOST"=>"test.host", | |
"REMOTE_ADDR"=>"0.0.0.0", | |
"HTTP_USER_AGENT"=>"Rails Testing", | |
"action_dispatch.parameter_filter"=>[:password], | |
"action_dispatch.redirect_filter"=>[], | |
"action_dispatch.secret_token"=>nil, | |
"action_dispatch.secret_key_base"=>"5e187e70c0b7adf942c74a4965cdf557d3b8de95b300d013de87821641aca061e78549fdd891d191fbb23c9c7e6239edb467e787fbbda66a9dc9f40f1010c040", | |
"action_dispatch.show_exceptions"=>false, | |
"action_dispatch.show_detailed_exceptions"=>true, | |
"action_dispatch.logger"=> | |
#<ActiveSupport::Logger:0x000000049f5188 | |
@default_formatter=#<Logger::Formatter:0x000000049f50e8 @datetime_format=nil>, | |
@formatter=#<ActiveSupport::Logger::SimpleFormatter:0x00000003727a10 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:28917000">, | |
@level=0, | |
@local_levels=#<Concurrent::Map:0x000000049f4f80 entries=0 default_proc=nil>, | |
@logdev= | |
#<Logger::LogDevice:0x000000049f5098 | |
@dev=#<File:/home/rouget430/Documents/dev_portfolio/sendroute/log/test.log>, | |
@filename=nil, | |
@mon_count=0, | |
@mon_mutex=#<Thread::Mutex:0x000000049f5020>, | |
@mon_owner=nil, | |
@shift_age=nil, | |
@shift_period_suffix=nil, | |
@shift_size=nil>, | |
@progname=nil>, | |
"action_dispatch.backtrace_cleaner"=> | |
#<Rails::BacktraceCleaner:0x000000025d8868 | |
@filters= | |
[#<Proc:0x000000025bf228@/home/rouget430/.rvm/gems/ruby-2.4.1/gems/railties-5.1.6/lib/rails/backtrace_cleaner.rb:14>, | |
#<Proc:0x000000025bf188@/home/rouget430/.rvm/gems/ruby-2.4.1/gems/railties-5.1.6/lib/rails/backtrace_cleaner.rb:15>, | |
#<Proc:0x000000025bf160@/home/rouget430/.rvm/gems/ruby-2.4.1/gems/railties-5.1.6/lib/rails/backtrace_cleaner.rb:16>, | |
#<Proc:0x000000025b4210@/home/rouget430/.rvm/gems/ruby-2.4.1/gems/railties-5.1.6/lib/rails/backtrace_cleaner.rb:29>], | |
@root="/home/rouget430/Documents/dev_portfolio/sendroute/", | |
@silencers=[#<Proc:0x000000025b40f8@/home/rouget430/.rvm/gems/ruby-2.4.1/gems/railties-5.1.6/lib/rails/backtrace_cleaner.rb:19>]>, | |
"action_dispatch.key_generator"=> | |
#<ActiveSupport::CachingKeyGenerator:0x00000004582b00 | |
@cache_keys=#<Concurrent::Map:0x00000004582ad8 entries=1 default_proc=nil>, | |
@key_generator= | |
#<ActiveSupport::KeyGenerator:0x00000004582b50 | |
@iterations=1000, | |
@secret="5e187e70c0b7adf942c74a4965cdf557d3b8de95b300d013de87821641aca061e78549fdd891d191fbb23c9c7e6239edb467e787fbbda66a9dc9f40f1010c040">>, | |
"action_dispatch.http_auth_salt"=>"http authentication", | |
"action_dispatch.signed_cookie_salt"=>"signed cookie", | |
"action_dispatch.encrypted_cookie_salt"=>"encrypted cookie", | |
"action_dispatch.encrypted_signed_cookie_salt"=>"signed encrypted cookie", | |
"action_dispatch.cookies_serializer"=>:json, | |
"action_dispatch.cookies_digest"=>nil, | |
"rack.session"=> | |
{"warden.user.user.key"=>[[1], "$2a$04$BYEvubrRh6gH/0WvAasJOO"], "flash"=>{"discard"=>[], "flashes"=>{"error"=>"you do not have correct permmisions to do this, you are not a gym owner."}}}, | |
"rack.session.options"=> | |
{:key=>"rack.session", | |
:path=>"/", | |
:domain=>nil, | |
:expire_after=>nil, | |
:secure=>false, | |
:httponly=>true, | |
:defer=>false, | |
:renew=>false, | |
:sidbits=>128, | |
:cookie_only=>true, | |
:secure_random=>SecureRandom}, | |
"action_controller.instance"=> | |
#<GymsController:0x00000005955150 | |
@_action_has_layout=true, | |
@_action_name="create", | |
@_config={}, | |
@_db_runtime=0.24582299999999999, | |
@_lookup_context= | |
#<ActionView::LookupContext:0x00000002646750 | |
@cache=true, | |
@details={:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}, | |
@details_key=#<Concurrent::Map:0x000000057a0738 entries=0 default_proc=nil>, | |
@prefixes=["gyms", "application"], | |
@rendered_format=:html, | |
@view_paths= | |
#<ActionView::PathSet:0x00000002645670 | |
@paths= | |
[#<RSpec::Rails::ViewRendering::EmptyTemplateResolver::FileSystemResolver:0x00000002307b70 | |
@cache=#<ActionView::Resolver::Cache:0x2306c20 keys=1 queries=0>, | |
@path="/home/rouget430/Documents/dev_portfolio/sendroute/app/views", | |
@pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}">, | |
#<RSpec::Rails::ViewRendering::EmptyTemplateResolver::FileSystemResolver:0x00000002305410 | |
@cache=#<ActionView::Resolver::Cache:0x2305190 keys=1 queries=0>, | |
@path="/home/rouget430/.rvm/gems/ruby-2.4.1/gems/devise-4.4.3/app/views", | |
@pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}">]>>, | |
@_params=nil, | |
@_request=#<ActionController::TestRequest:0x0000000264d168 ...>, | |
@_response=#<ActionDispatch::TestResponse:0x0000000264c498 ...>, | |
@_response_body=[""], | |
@_routes=nil, | |
@_url_options=nil, | |
@_view_context_class=#<Class:0x000000057b7690>, | |
@_view_renderer= | |
#<ActionView::Renderer:0x00000002863d08 | |
@lookup_context= | |
#<ActionView::LookupContext:0x00000002646750 | |
@cache=true, | |
@details={:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}, | |
@details_key=#<Concurrent::Map:0x000000057a0738 entries=0 default_proc=nil>, | |
@prefixes=["gyms", "application"], | |
@rendered_format=:html, | |
@view_paths= | |
#<ActionView::PathSet:0x00000002645670 | |
@paths= | |
[#<RSpec::Rails::ViewRendering::EmptyTemplateResolver::FileSystemResolver:0x00000002307b70 | |
@cache=#<ActionView::Resolver::Cache:0x2306c20 keys=1 queries=0>, | |
@path="/home/rouget430/Documents/dev_portfolio/sendroute/app/views", | |
@pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}">, | |
#<RSpec::Rails::ViewRendering::EmptyTemplateResolver::FileSystemResolver:0x00000002305410 | |
@cache=#<ActionView::Resolver::Cache:0x2305190 keys=1 queries=0>, | |
@path="/home/rouget430/.rvm/gems/ruby-2.4.1/gems/devise-4.4.3/app/views", | |
@pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}">]>>>, | |
@_view_runtime=1.1588610004764632, | |
@current_user= | |
#<User id: 1, first_name: "test", last_name: "test", user_name: "climber", email: "climber@sendroute.com", climber: true, route_setter: false, gym_owner: false, comment_id: nil, route_id: nil, climb_id: nil, created_at: "2018-05-21 11:23:47", updated_at: "2018-05-21 11:23:47">, | |
@marked_for_same_origin_verification=false>, | |
"warden"=> | |
Warden::Proxy:46833960 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:rememberable, :database_authenticatable]}, :intercept_401=>false, :failure_app=>#<Devise::Delegator:0x0000000453cc68>}, | |
"HTTP_COOKIE"=>"", | |
"CONTENT_TYPE"=>"application/x-www-form-urlencoded", | |
"action_dispatch.request.content_type"=>#<Mime::Type:0x00000002dae0b0 @hash=-1638686081550494187, @string="application/x-www-form-urlencoded", @symbol=:url_encoded_form, @synonyms=[]>, | |
"PATH_INFO"=>"/gyms", | |
"action_dispatch.request.path_parameters"=>{:controller=>"gyms", :action=>"create"}, | |
"action_dispatch.request.flash_hash"=> | |
#<ActionDispatch::Flash::FlashHash:0x000000027daaf8 @discard=#<Set: {}>, @flashes={"error"=>"you do not have correct permmisions to do this, you are not a gym owner."}, @now=nil>, | |
"rack.tempfiles"=>[], | |
"rack.request.form_hash"=> | |
{"gym"=>{"about"=>"Classic multi story climbing gym in central london", "address"=>"Finsbury Park - London", "email"=>"castleclimbing@gmail.com", "gym_name"=>"The Castle Gym"}}, | |
"rack.request.form_vars"=> | |
"gym%5Babout%5D=Classic+multi+story+climbing+gym+in+central+london&gym%5Baddress%5D=Finsbury+Park+-+London&gym%5Bemail%5D=castleclimbing%40gmail.com&gym%5Bgym_name%5D=The+Castle+Gym", | |
"rack.request.form_input"=>#<StringIO:0x000000026347a8>, | |
"action_dispatch.request.request_parameters"=> | |
{"gym"=>{"about"=>"Classic multi story climbing gym in central london", "address"=>"Finsbury Park - London", "email"=>"castleclimbing@gmail.com", "gym_name"=>"The Castle Gym"}}, | |
"rack.request.query_string"=>"", | |
"rack.request.query_hash"=>{}, | |
"action_dispatch.request.query_parameters"=>{}, | |
"action_dispatch.request.parameters"=> | |
{"gym"=>{"about"=>"Classic multi story climbing gym in central london", "address"=>"Finsbury Park - London", "email"=>"castleclimbing@gmail.com", "gym_name"=>"The Castle Gym"}, | |
"controller"=>"gyms", | |
"action"=>"create"}, | |
"action_dispatch.request.formats"=>[#<Mime::Type:0x00000002840a10 @hash=2836241195226454331, @string="text/html", @symbol=:html, @synonyms=["application/xhtml+xml"]>]}, | |
@filtered_env=nil, | |
@filtered_parameters= | |
{"gym"=>{"about"=>"Classic multi story climbing gym in central london", "address"=>"Finsbury Park - London", "email"=>"castleclimbing@gmail.com", "gym_name"=>"The Castle Gym"}, | |
"controller"=>"gyms", | |
"action"=>"create"}, | |
@filtered_path=nil, | |
@fullpath="/gyms", | |
@headers=#<ActionDispatch::Http::Headers:0x00000002d6b2d8 @req=#<ActionController::TestRequest:0x0000000264d168 ...>>, | |
@ip=nil, | |
@method=nil, | |
@original_fullpath=nil, | |
@port=nil, | |
@protocol=nil, | |
@remote_ip=nil, | |
@request_method="POST", | |
@variant=[]>, | |
@response_parser=#<Proc:0x00000002646908@/home/rouget430/.rvm/gems/ruby-2.4.1/gems/actionpack-5.1.6/lib/action_dispatch/testing/request_encoder.rb:7 (lambda)>, | |
@sending=false, | |
@sent=true, | |
@status=200, | |
@stream=#<ActionDispatch::Response::Buffer:0x000000027efb88 @buf=[""], @closed=false, @response=#<ActionDispatch::TestResponse:0x0000000264c498 ...>, @str_body=nil>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment