border-patrol 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/border-patrol.rb +7 -0
- data/lib/border_patrol/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/border-patrol.rb
CHANGED
@@ -14,6 +14,9 @@ module BorderPatrol
|
|
14
14
|
# Don't perform the tests in console mode, unless requested.
|
15
15
|
return if console? && configuration.ignore_console
|
16
16
|
|
17
|
+
# Don't perform the tests during `rake db:migrate`.
|
18
|
+
return if during_db_migrate?
|
19
|
+
|
17
20
|
# Perform initial test.
|
18
21
|
abort_if_pending
|
19
22
|
|
@@ -48,6 +51,10 @@ module BorderPatrol
|
|
48
51
|
defined?(Rails::Console)
|
49
52
|
end
|
50
53
|
|
54
|
+
def during_db_migrate?
|
55
|
+
File.basename($0) == 'rake' && ARGV.include?('db:migrate')
|
56
|
+
end
|
57
|
+
|
51
58
|
def start
|
52
59
|
@thread = Thread.new do
|
53
60
|
@timers = Timers.new
|