Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upgrade to RSpec 2.0 for tests

  • Loading branch information...
commit c405aa00d7541147899e4f72894c65ec31ada0dc 1 parent 94dc735
Gregory Bataille authored
Showing with 7 additions and 12 deletions.
  1. +4 −9 Rakefile
  2. +1 −1  features/support/env.rb
  3. +2 −2 spec/spec_helper.rb
View
13 Rakefile
@@ -1,17 +1,12 @@
require 'rake'
-require 'spec'
+require 'rspec'
+require 'rspec/core/rake_task'
require 'cucumber'
-
require 'cucumber/rake/task'
-require 'spec/rake/spectask'
-
-
-spec_files = Rake::FileList["spec/**/*_spec.rb"]
desc "Run specs"
-Spec::Rake::SpecTask.new do |t|
- t.spec_files = spec_files
- t.spec_opts = ["-c"]
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = "spec/**/*_spec.rb"
end
Cucumber::Rake::Task.new(:features) do |t|
View
2  features/support/env.rb
@@ -1,5 +1,5 @@
require 'cucumber'
-require 'spec'
+require 'rspec'
require File.dirname(__FILE__) + '/../../lib/ruby_warrior'
View
4 spec/spec_helper.rb
@@ -1,8 +1,8 @@
require 'rubygems'
-require 'spec'
+require 'rspec'
require File.dirname(__FILE__) + '/../lib/ruby_warrior'
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
config.mock_with :mocha
config.before(:each) do
RubyWarrior::Config.reset
Please sign in to comment.
Something went wrong with that request. Please try again.