Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update Rakefile to use latest rspec.

  • Loading branch information...
commit f8769400b64c7852599949607785f5ad5563c53d 1 parent 14e9636
@DAddYE DAddYE authored
Showing with 9 additions and 12 deletions.
  1. +9 −12 Rakefile
View
21 Rakefile
@@ -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")
Please sign in to comment.
Something went wrong with that request. Please try again.