summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-01-04 18:50:54 +0200
committerytti <saku@ytti.fi>2016-01-04 18:50:54 +0200
commit0eeba91b426c8b4a6335a88da9c65ba38e5fac15 (patch)
tree02ba46c4f7d43b5721f3eb7de38599e0e019e5cf /Rakefile
parentf112dfa0c604ae1c990f6411a002806924c00bf3 (diff)
parente41f7b429901eb38ad785ad1fc2527dd41f35959 (diff)
Merge pull request #250 from Shopify/master0.10.0
refactoring, test coverage and github hook
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/Rakefile b/Rakefile
index 3d85377..3a1be5e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,10 +1,5 @@
-begin
- require 'rake/testtask'
- require 'bundler'
- # Bundler.setup
-rescue LoadError
- warn 'bundler missing'
-end
+require 'bundler/gem_tasks'
+require 'rake/testtask'
gemspec = eval(File.read(Dir['*.gemspec'].first))
file = [gemspec.name, gemspec.version].join('-') + '.gem'
@@ -17,8 +12,9 @@ end
desc 'Run minitest'
task :test do
Rake::TestTask.new do |t|
- t.libs.push "lib"
- t.test_files = FileList['spec/*_spec.rb']
+ t.libs << 'spec'
+ t.test_files = FileList['spec/**/*_spec.rb']
+ t.warning = true
t.verbose = true
end
end
@@ -49,3 +45,5 @@ desc 'Push to rubygems'
task :push => :tag do
system "gem push gems/#{file}"
end
+
+task default: :test