Skip to content

Commit

Permalink
Upgrade specs to use RSpec 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rlivsey committed Mar 9, 2011
1 parent 4603fa6 commit c2c218d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 4 additions & 7 deletions Rakefile
Expand Up @@ -2,15 +2,12 @@ require "rubygems"
require "rake/gempackagetask"
require "rake/rdoctask"

require "spec"
require "spec/rake/spectask"
Spec::Rake::SpecTask.new do |t|
t.spec_opts = %w(--format specdoc --colour)
t.libs = ["spec"]
end
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

task :default => ["spec"]

# This builds the actual gem. For details of what all these options
# mean, and other ones you can add, check the documentation here:
Expand Down
5 changes: 2 additions & 3 deletions spec/spec_helper.rb
Expand Up @@ -2,10 +2,9 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'rubygems'
gem 'rspec'
require 'rspec'

require 'mm-paranoid'
require 'spec'

MongoMapper.database = 'mm-paranoid-spec'

Expand All @@ -23,7 +22,7 @@ class NormalItem
key :title, String
end

Spec::Runner.configure do |config|
RSpec.configure do |config|
config.before(:each) do
ParanoidItem.delete_all
NormalItem.delete_all
Expand Down

0 comments on commit c2c218d

Please sign in to comment.