Skip to content

Commit

Permalink
move to rspec2
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed Dec 19, 2010
1 parent 07ddf3b commit 4fe2e4e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--format documentation
--colour
20 changes: 8 additions & 12 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,18 @@ rescue LoadError
end

begin
require 'rake'
require 'spec/rake/spectask'
require 'rspec'
require 'rspec/core/rake_task'

desc "Run all examples with RCov"
Spec::Rake::SpecTask.new('spec:rcov') do |t|
t.spec_files = FileList['spec/']
RSpec::Core::RakeTask.new('spec:rcov') do |t|
t.rcov = true
t.rcov_opts = lambda do
IO.readlines("spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
end
end
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/']
t.libs << 'ext'
t.spec_opts << '--options' << 'spec/spec.opts'
RSpec::Core::RakeTask.new('spec') do |t|
t.verbose = true
end

task :default => :spec
rescue LoadError
puts "RSpec, or one of its dependencies, is not available. Install it with: sudo gem install rspec"
puts "rspec, or one of its dependencies, is not available. Install it with: sudo gem install rspec"
end
2 changes: 0 additions & 2 deletions spec/spec.opts

This file was deleted.

2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

require 'rubygems'
require 'rspec'
require 'yajl'
require 'date'

Expand Down

0 comments on commit 4fe2e4e

Please sign in to comment.