Rakefile in enum_attr-0.0.7 vs Rakefile in enum_attr-1.0.0
- old
+ new
@@ -1,7 +1,8 @@
require "rubygems"
-require 'rake'
+require 'rake'
+require 'rspec/core/rake_task'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
@@ -13,6 +14,13 @@
gemspec.authors = ["qichunren"]
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
+end
+
+task :default => :spec
+
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = Dir.glob('spec/**/*_spec.rb')
+ t.rspec_opts = '--format progress -c'
end
\ No newline at end of file