Skip to content

Commit

Permalink
Raise a better error message when testing_support/common_rake can't b…
Browse files Browse the repository at this point in the history
…e found

Fixes solidusio#2041
  • Loading branch information
radar committed Oct 4, 2012
1 parent acf6d77 commit ed45413
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ require 'rake'
require 'rubygems/package_task'
require 'thor/group'
require File.expand_path('../core/lib/generators/spree/install/install_generator', __FILE__)
require 'spree/core/testing_support/common_rake'
begin
require 'spree/core/testing_support/common_rake'
rescue LoadError
raise "Could not find spree/core/testing_support/common_rake. You need to run this command using Bundler."
exit
end

spec = eval(File.read('spree.gemspec'))
Gem::PackageTask.new(spec) do |pkg|
Expand Down

0 comments on commit ed45413

Please sign in to comment.