Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minimal update to RSpec 2

  • Loading branch information...
commit b2ee971d435d45d1e682df29b28cd357a7447e68 1 parent 65f4987
Gioele gioele authored committed
Showing with 8 additions and 8 deletions.
  1. +6 −6 Rakefile
  2. +2 −2 spec/spec_helper.rb
12 Rakefile
View
@@ -19,15 +19,15 @@ task :install => :gem do
end
begin
- require 'spec'
- require 'spec/rake/spectask'
+ require 'rspec'
+ require 'rspec/core/rake_task'
desc "Run all specs"
- Spec::Rake::SpecTask.new("specs") do |t|
+ RSpec::Core::RakeTask.new("specs") do |t|
$DEBUG = true if ENV['DEBUG']
- t.spec_opts = ["--format", "specdoc", "--colour"]
- t.spec_opts += ["--require", File.join(File.dirname(__FILE__), 'spec', 'spec_helper')]
- t.spec_files = Dir["spec/**/*_spec.rb"].sort
+ t.rspec_opts = ["--colour"]
+ t.rspec_opts += ["--require", File.join(File.dirname(__FILE__), 'spec', 'spec_helper')]
+ t.pattern = "spec/**/*_spec.rb"
if ENV['RCOV']
hide = '_spec\.rb$,spec_helper\.rb$,ruby_lex\.rb$,autoload\.rb$'
4 spec/spec_helper.rb
View
@@ -1,5 +1,5 @@
require "rubygems"
-require "spec"
+require "rspec"
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'yard'))
@@ -74,4 +74,4 @@ def docspec(objname = self.class.description, klass = self.class.described_type)
end
end
-include YARD
+include YARD
Please sign in to comment.
Something went wrong with that request. Please try again.