Rakefile in wrap_it-0.1.5 vs Rakefile in wrap_it-0.2.0
- old
+ new
@@ -1,7 +1,20 @@
+# http://stackoverflow.com/questions/15752774/ \
+# strategies-for-gem-tests-to-ensure-the-gem-works-with-rails-3-x-and-4-0
+
+unless ENV['FRAMEWORK'].nil?
+ ENV['BUNDLE_GEMFILE'] = "Gemfile.#{ENV['FRAMEWORK']}"
+end
+
+begin
+ require 'bundler/setup'
+rescue LoadError
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
+end
+
require 'bundler/gem_tasks'
-# require 'yard'
require 'rspec/core/rake_task'
+# require 'yard'
# require 'rake/testtask'
# Rake::TestTask.new do |t|
# t.name = :spec_rails
# t.libs.push "spec_rails"