mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-15 08:15:57 +00:00
Add tests back to Rakefile
This commit is contained in:
8
Rakefile
8
Rakefile
@@ -1,6 +1,7 @@
|
|||||||
|
require 'rspec/core/rake_task'
|
||||||
require File.dirname(__FILE__) + '/lib/haste/version'
|
require File.dirname(__FILE__) + '/lib/haste/version'
|
||||||
|
|
||||||
task :build do
|
task :build => :test do
|
||||||
system "gem build haste.gemspec"
|
system "gem build haste.gemspec"
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -11,3 +12,8 @@ task :release => :build do
|
|||||||
# push the gem
|
# push the gem
|
||||||
system "gem push haste-#{Haste::VERSION}.gem"
|
system "gem push haste-#{Haste::VERSION}.gem"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
RSpec::Core::RakeTask.new(:test) do |t|
|
||||||
|
t.pattern = 'spec/**/*_spec.rb'
|
||||||
|
fail_on_error = true # be explicit
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user