Applied rubocop Style/SpaceInsideHashLiteralBraces.

This commit is contained in:
Martin Edenhofer 2015-04-27 16:47:58 +02:00
parent 6461bed0dd
commit 081d71ffa3
3 changed files with 7 additions and 7 deletions

View file

@ -127,7 +127,7 @@ class SessionsController < ApplicationController
request.env['rack.session.options'][:expire_after] = -1.year
request.env['rack.session.options'][:renew] = true
render json: { }
render json: {}
end
def create_omniauth

View file

@ -45,7 +45,7 @@ returns
http = get_http(uri, options)
# prepare request
request = Net::HTTP::Get.new( uri, {'User-Agent' => 'Zammad User Agent'} )
request = Net::HTTP::Get.new( uri, { 'User-Agent' => 'Zammad User Agent' } )
# http basic auth (if needed)
request = set_basic_auth(request, options)
@ -93,7 +93,7 @@ returns
http = get_http(uri, options)
# prepare request
request = Net::HTTP::Post.new( uri, {'User-Agent' => 'Zammad User Agent'} )
request = Net::HTTP::Post.new( uri, { 'User-Agent' => 'Zammad User Agent' } )
# set params
request = set_params(request, params, options)
@ -141,7 +141,7 @@ returns
http = get_http(uri, options)
# prepare request
request = Net::HTTP::Put.new( uri, {'User-Agent' => 'Zammad User Agent'} )
request = Net::HTTP::Put.new( uri, { 'User-Agent' => 'Zammad User Agent' } )
# set params
request = set_params(request, params, options)
@ -185,7 +185,7 @@ returns
http = get_http(uri, options)
# prepare request
request = Net::HTTP::Delete.new( uri, {'User-Agent' => 'Zammad User Agent'} )
request = Net::HTTP::Delete.new( uri, { 'User-Agent' => 'Zammad User Agent' } )
# http basic auth (if needed)
request = set_basic_auth(request, options)

View file

@ -116,7 +116,7 @@ class SessionEnhancedTest < ActiveSupport::TestCase
assert_equal( true, messages[0]['data']['success'], 'messages 1')
# broadcast to all clients
Sessions.broadcast( { msg: 'ooo123123123123123123'} )
Sessions.broadcast( { msg: 'ooo123123123123123123' } )
messages = Sessions.queue(client_id1)
assert_equal( messages.count, 1, 'messages count')
assert_equal( 'ooo123123123123123123', messages[0]['msg'], 'messages broadcast 1')
@ -130,7 +130,7 @@ class SessionEnhancedTest < ActiveSupport::TestCase
assert_equal( 'ooo123123123123123123', messages[0]['msg'], 'messages broadcast 1')
# send dedicated message to user
Sessions.send_to( agent1.id, { msg: 'ooo1231231231231231234'} )
Sessions.send_to( agent1.id, { msg: 'ooo1231231231231231234' } )
messages = Sessions.queue(client_id1)
assert_equal( messages.count, 1, 'messages count')
assert_equal( 'ooo1231231231231231234', messages[0]['msg'], 'messages send 1')