mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
Added rescue for rake task
This commit is contained in:
parent
680fc90e8b
commit
82463fd99d
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
if Rails.env.test? || Rails.env.development?
|
begin
|
||||||
require 'rspec/core/rake_task'
|
require 'rspec/core/rake_task'
|
||||||
require 'open3'
|
require 'open3'
|
||||||
|
|
||||||
|
@ -40,4 +40,6 @@ if Rails.env.test? || Rails.env.development?
|
||||||
`kill #{pid}`
|
`kill #{pid}`
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
rescue LoadError
|
||||||
|
# rspec gem not loaded, probably we are in production machine
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue