Permalink
Browse files

Fix tests for latest rspec version

  • Loading branch information...
1 parent e1a340e commit a9c739de072387f3dc7847a320020a0eb2b19932 @dcadenas dcadenas committed Feb 2, 2012
Showing with 6 additions and 8 deletions.
  1. +3 −5 Rakefile
  2. +3 −3 spec/spec_helper.rb
View
@@ -13,15 +13,13 @@ spec = Gem::Specification.new do |s|
end
require 'rake/extensiontask'
-Rake::GemPackageTask.new(spec) do |pkg|
+Gem::PackageTask.new(spec) do |pkg|
end
Rake::ExtensionTask.new('rankable_graph', spec)
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
end
task :spec => :compile
View
@@ -1,8 +1,8 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rankable_graph'
-require 'spec'
-require 'spec/autorun'
+require 'rspec'
+require 'rspec/autorun'
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
end

0 comments on commit a9c739d

Please sign in to comment.