Rakefile in simple-layout-0.1.2 vs Rakefile in simple-layout-0.2.0
- old
+ new
@@ -1,9 +1,14 @@
# encoding: utf-8
-
-require 'rubygems'
+require 'rake'
+require 'rspec/core/rake_task'
+require 'rake/testtask'
require 'bundler'
+Bundler::GemHelper.install_tasks
+
+$:.unshift File.expand_path('../lib', __FILE__)
+
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
@@ -33,5 +38,12 @@
rdoc.title = "simple-layout #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
+desc 'Test generators'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.pattern = 'test/*_test.rb'
+ t.verbose = true
+end