Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remember, it is rspec in this project

  • Loading branch information...
commit cf0885f7efdad2224c2a180b543e1a05a22014e7 1 parent f7984f0
@copiousfreetime authored
Showing with 13 additions and 6 deletions.
  1. +13 −6 Rakefile
View
19 Rakefile
@@ -59,14 +59,13 @@ desc "Boostrap development"
task :develop => "develop:default"
#------------------------------------------------------------------------------
-# Minitest - standard TestTask
+# RSpec - standard RSpec rake task
#------------------------------------------------------------------------------
begin
- require 'rake/testtask'
- Rake::TestTask.new( :test ) do |t|
- t.ruby_opts = %w[ -w -rubygems ]
- t.libs = %w[ lib spec ]
- t.pattern = "spec/**/*_spec.rb"
+ require 'rspec/core/rake_task'
+ RSpec::Core::RakeTask.new( :test ) do |t|
+ t.ruby_opts = %w[ -w ]
+ t.rspec_opts = %w[ --color --format documentation ]
end
task :default => :test
rescue LoadError
@@ -323,6 +322,14 @@ BEGIN {
def self.platform_gemspec
This.gemspec[This.platform]
end
+
+ def self.proj_root_path
+ Pathname.new( File.expand_path( "..", __FILE__ ) )
+ end
+
+ def self.proj_path(*args)
+ proj_root_path.join( *args )
+ end
end
# Hold all the metadata about this project
Please sign in to comment.
Something went wrong with that request. Please try again.