Skip to content
Browse files

added rake file to run specs and updated to work with rspec 2.2

  • Loading branch information...
1 parent 9d05c00 commit d77b57f1af715796c5bfcc54afe4540cd1540f5c Paul Dix committed Apr 8, 2011
Showing with 15 additions and 2 deletions.
  1. +13 −0 Rakefile
  2. +2 −2 spec/spec_helper.rb
View
13 Rakefile
@@ -0,0 +1,13 @@
+require 'rubygems'
+require 'rspec/core'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = FileList['spec/**/*_spec.rb']
+end
+
+RSpec::Core::RakeTask.new(:rcov) do |spec|
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rcov = true
+end
+
+task :default => :spec
View
4 spec/spec_helper.rb
@@ -1,10 +1,10 @@
require "rubygems"
-require "spec"
+require "rspec"
# gem install redgreen for colored test output
begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
$LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
-require "lib/domainatrix"
+require "#{File.dirname(__FILE__)}/../lib/domainatrix"

0 comments on commit d77b57f

Please sign in to comment.
Something went wrong with that request. Please try again.