Permalink
Browse files

Update Rakefile to use latest rspec.

  • Loading branch information...
1 parent 14e9636 commit f8769400b64c7852599949607785f5ad5563c53d @DAddYE DAddYE committed May 16, 2011
Showing with 9 additions and 12 deletions.
  1. +9 −12 Rakefile
View
@@ -1,23 +1,20 @@
require 'rubygems'
require 'bundler'
-Bundler::GemHelper.install_tasks
-
-require 'rake'
+require 'rspec/core/rake_task'
require "rake/rdoctask"
-require 'rspec'
-require 'rspec/core/rake_task'
+Bundler::GemHelper.install_tasks
desc "Run all specs"
-Rspec::Core::RakeTask.new(:spec) do |spec|
- spec.rspec_opts = ["--color"]
- spec.pattern = 'spec/**/*_spec.rb'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.rspec_opts = ["--color"]
+ spec.pattern = 'spec/**/*_spec.rb'
end
desc "Print specdocs"
-Rspec::Core::RakeTask.new(:doc) do |spec|
- spec.rspec_opts = ["--format", "specdoc"]
- spec.pattern = 'spec/*_spec.rb'
+RSpec::Core::RakeTask.new(:doc) do |spec|
+ spec.rspec_opts = ["--format", "specdoc"]
+ spec.pattern = 'spec/*_spec.rb'
end
desc "Generate the rdoc"
@@ -38,4 +35,4 @@ module Rake
end
Rake.remove_task("github:release")
-Rake.remove_task("release")
+Rake.remove_task("release")

0 comments on commit f876940

Please sign in to comment.