Applied rubocop Style/SpaceBeforeComma.
This commit is contained in:
parent
c34a33da99
commit
6461bed0dd
3 changed files with 4 additions and 4 deletions
|
@ -535,7 +535,7 @@ class Channel::EmailParser
|
||||||
next if key == 'created_by_id'
|
next if key == 'created_by_id'
|
||||||
|
|
||||||
# check if id exists
|
# check if id exists
|
||||||
key_short = key[ key.length - 3 , key.length ]
|
key_short = key[ key.length - 3, key.length ]
|
||||||
if key_short == '_id'
|
if key_short == '_id'
|
||||||
key_short = key[ 0, key.length - 3 ]
|
key_short = key[ 0, key.length - 3 ]
|
||||||
header = "x-zammad-#{header_name}-#{key_short}"
|
header = "x-zammad-#{header_name}-#{key_short}"
|
||||||
|
|
|
@ -395,7 +395,7 @@ returns
|
||||||
path = @path + '/spool/'
|
path = @path + '/spool/'
|
||||||
FileUtils.mkpath path
|
FileUtils.mkpath path
|
||||||
file = Time.new.to_f.to_s + '-' + rand(99_999).to_s
|
file = Time.new.to_f.to_s + '-' + rand(99_999).to_s
|
||||||
File.open( path + '/' + file , 'wb' ) { |file|
|
File.open( path + '/' + file, 'wb' ) { |file|
|
||||||
data = {
|
data = {
|
||||||
msg: msg,
|
msg: msg,
|
||||||
timestamp: Time.now.to_i,
|
timestamp: Time.now.to_i,
|
||||||
|
|
|
@ -3,7 +3,7 @@ require 'test_helper'
|
||||||
|
|
||||||
class SessionBasicTest < ActiveSupport::TestCase
|
class SessionBasicTest < ActiveSupport::TestCase
|
||||||
test 'a cache' do
|
test 'a cache' do
|
||||||
Sessions::CacheIn.set( 'last_run_test' , true, { expires_in: 2.seconds } )
|
Sessions::CacheIn.set( 'last_run_test', true, { expires_in: 2.seconds } )
|
||||||
result = Sessions::CacheIn.get( 'last_run_test' )
|
result = Sessions::CacheIn.get( 'last_run_test' )
|
||||||
assert_equal( true, result, 'check 1' )
|
assert_equal( true, result, 'check 1' )
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ class SessionBasicTest < ActiveSupport::TestCase
|
||||||
assert_equal( nil, result, 'check 2' )
|
assert_equal( nil, result, 'check 2' )
|
||||||
|
|
||||||
# check delete cache
|
# check delete cache
|
||||||
Sessions::CacheIn.set( 'last_run_delete' , true, { expires_in: 5.seconds } )
|
Sessions::CacheIn.set( 'last_run_delete', true, { expires_in: 5.seconds } )
|
||||||
result = Sessions::CacheIn.get( 'last_run_delete' )
|
result = Sessions::CacheIn.get( 'last_run_delete' )
|
||||||
assert_equal( true, result, 'check 1' )
|
assert_equal( true, result, 'check 1' )
|
||||||
Sessions::CacheIn.delete( 'last_run_delete' )
|
Sessions::CacheIn.delete( 'last_run_delete' )
|
||||||
|
|
Loading…
Reference in a new issue