diff --git a/lib/motion/project.rb b/lib/motion/project.rb index 062c7ec9..ab1685ae 100644 --- a/lib/motion/project.rb +++ b/lib/motion/project.rb @@ -30,6 +30,8 @@ App = Motion::Project::App +Bundler.require if Object.const_defined?(:Bundler) + # Check for software updates. system('/usr/bin/motion update --check') if $?.exitstatus == 2 @@ -124,6 +126,7 @@ desc "Run the test/spec suite on the simulator" task :simulator do App.config.spec_mode = true + Bundler.require :default, :spec if Object.const_defined?(:Bundler) Rake::Task["simulator"].invoke end