Permalink
Browse files

Convert to new rspec

  • Loading branch information...
1 parent a665307 commit c77daa298dd925adeeff90c5918fc0ce532ed590 @mk mk committed Aug 15, 2012
Showing with 32 additions and 25 deletions.
  1. +6 −6 Gemfile
  2. +23 −11 Gemfile.lock
  3. +2 −6 Rakefile
  4. +1 −2 spec/spec_helper.rb
View
12 Gemfile
@@ -1,8 +1,8 @@
source :gemcutter
-gem 'rake', '>= 0.8.7'
-gem 'rspec', '>= 1.3.0'
-gem 'rcov', '>= 0.9.9'
-gem 'yard', '>= 0.5.4'
-gem 'yard-rspec', '>= 0.1.0'
-gem 'bluecloth', '>= 2.0.5'
+gem 'rake'
+gem 'rspec'
+gem 'simplecov'
+gem 'yard'
+gem 'yard-rspec'
+gem 'bluecloth'
View
34 Gemfile.lock
@@ -1,21 +1,33 @@
GEM
remote: http://rubygems.org/
specs:
- bluecloth (2.0.7)
- rake (0.8.7)
- rcov (0.9.9)
- rspec (1.3.0)
- yard (0.5.8)
+ bluecloth (2.2.0)
+ diff-lcs (1.1.3)
+ multi_json (1.3.6)
+ rake (0.9.2.2)
+ rspec (2.11.0)
+ rspec-core (~> 2.11.0)
+ rspec-expectations (~> 2.11.0)
+ rspec-mocks (~> 2.11.0)
+ rspec-core (2.11.1)
+ rspec-expectations (2.11.2)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.11.2)
+ simplecov (0.6.4)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.5.3)
+ simplecov-html (0.5.3)
+ yard (0.8.2.1)
yard-rspec (0.1)
yard
PLATFORMS
ruby
DEPENDENCIES
- bluecloth (>= 2.0.5)
- rake (>= 0.8.7)
- rcov (>= 0.9.9)
- rspec (>= 1.3.0)
- yard (>= 0.5.4)
- yard-rspec (>= 0.1.0)
+ bluecloth
+ rake
+ rspec
+ simplecov
+ yard
+ yard-rspec
View
8 Rakefile
@@ -5,17 +5,13 @@ require 'bundler'
Bundler.setup
Bundler.require
-require 'spec/rake/spectask'
+require "rspec/core/rake_task"
desc 'Default: run specs.'
task :default => :spec
desc 'Run the specs'
-Spec::Rake::SpecTask.new(:spec) do |t|
- t.rcov_opts << '--exclude "gems/*,spec/*"'
- t.rcov = true
- t.rcov_dir = 'doc/coverage'
- t.spec_files = FileList['spec/**/*_spec.rb']
+RSpec::Core::RakeTask.new(:spec) do |t|
end
YARD::Rake::YardocTask.new(:doc) do |t|
View
3 spec/spec_helper.rb
@@ -1,7 +1,6 @@
# -*- encoding : utf-8 -*-
require 'rubygems'
-require 'spec'
-require 'spec/autorun'
+require 'rspec'
require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "saulabs", "trueskill.rb"))
require File.expand_path(File.join(File.dirname(__FILE__), "true_skill_matchers.rb"))

0 comments on commit c77daa2

Please sign in to comment.