mirror of
https://github.com/jimeh/time_ext.git
synced 2026-02-19 13:26:39 +00:00
updated project to rspec 2.x
This commit is contained in:
11
Rakefile
11
Rakefile
@@ -19,14 +19,13 @@ rescue LoadError
|
|||||||
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'spec/rake/spectask'
|
# Rspec
|
||||||
Spec::Rake::SpecTask.new(:spec) do |spec|
|
require 'rspec/core/rake_task'
|
||||||
spec.libs << 'lib' << 'spec'
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
||||||
spec.spec_files = FileList['spec/**/*_spec.rb']
|
spec.pattern = 'spec/**/*_spec.rb'
|
||||||
end
|
end
|
||||||
|
|
||||||
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
||||||
spec.libs << 'lib' << 'spec'
|
|
||||||
spec.pattern = 'spec/**/*_spec.rb'
|
spec.pattern = 'spec/**/*_spec.rb'
|
||||||
spec.rcov = true
|
spec.rcov = true
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
--format specdoc
|
|
||||||
--color
|
|
||||||
@@ -1,9 +1,6 @@
|
|||||||
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
||||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
require 'time_ext'
|
|
||||||
require 'spec'
|
|
||||||
require 'spec/autorun'
|
|
||||||
|
|
||||||
Spec::Runner.configure do |config|
|
require 'time_ext'
|
||||||
|
require 'rspec'
|
||||||
end
|
require 'rspec/autorun'
|
||||||
|
|||||||
Reference in New Issue
Block a user