From a0401209c29417ca32619b8127347be996eb0aa4 Mon Sep 17 00:00:00 2001 From: "Colin T.A. Gray" Date: Wed, 26 Jun 2013 14:51:23 -0600 Subject: [PATCH] not sure this is the right place for this method, but it's handy, anyway --- lib/motion/project.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/motion/project.rb b/lib/motion/project.rb index c95ad577..42f0a860 100644 --- a/lib/motion/project.rb +++ b/lib/motion/project.rb @@ -69,3 +69,7 @@ sh "#{ctags} --options=\"#{config}\" #{bs_files.map { |x| '"' + x + '"' }.join(' ')}" end end + +def spec_mode? + Rake.application.top_level_tasks.include? 'spec' +end \ No newline at end of file