hot fix for failed specs
This commit is contained in:
parent
6a1d43690e
commit
129930b385
|
@ -12,7 +12,7 @@ module Modules
|
|||
|
||||
validate lambda {
|
||||
# 2 min <= time_living <= 12 hours
|
||||
if 120 > time_living || time_living > 43200
|
||||
if 120 > time_living.to_i || time_living.to_i > 43200
|
||||
errors.add(:time_living, I18n.t('flash.time_living.numericality_error'))
|
||||
end
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ FactoryGirl.define do
|
|||
update_type 'security'
|
||||
include_repos {|bl| bl.save_to_platform.repositories.map(&:id)}
|
||||
project_version 'latest_master'
|
||||
time_living 150
|
||||
after(:build) {|bl| test_git_commit bl.project }
|
||||
end
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ FactoryGirl.define do
|
|||
status 0 # BUILD_COMPLETED
|
||||
main_script 'build.sh'
|
||||
params 'ENV=i586'
|
||||
time_living 60
|
||||
time_living 150
|
||||
project_version 'latest_master'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,5 +8,6 @@ FactoryGirl.define do
|
|||
p.project.repo.index.add('test', 'TEST')
|
||||
p.project.repo.index.commit('Test commit')
|
||||
}
|
||||
time_living 150
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue