diff --git a/lib/whenever/capistrano.rb b/lib/whenever/capistrano.rb
index <HASH>..<HASH> 100644
--- a/lib/whenever/capistrano.rb
+++ b/lib/whenever/capistrano.rb
@@ -1,3 +1,4 @@
+require 'capistrano/version'
 if defined?(Capistrano::VERSION) && Gem::Version.new(Capistrano::VERSION).release >= Gem::Version.new('3.0.0')
   load File.expand_path("../tasks/whenever.rake", __FILE__)
 else
load capistrano/version so we can test it.