Permalink
Browse files

upgrade to rspec 2.8

  • Loading branch information...
1 parent 947433a commit e38f550eab1b87f1b0fb5bfe22be03e1051a6694 @pitr pitr committed Jan 22, 2012
Showing with 8 additions and 7 deletions.
  1. +3 −0 .rspec
  2. +3 −5 Rakefile
  3. +1 −1 spec/spec_helper.rb
  4. +1 −1 warden-github.gemspec
View
3 .rspec
@@ -0,0 +1,3 @@
+--format documentation
+--color
+--order rand
View
8 Rakefile
@@ -5,10 +5,8 @@ require 'bundler'
task :default => [:spec]
-require 'spec/rake/spectask'
+require 'rspec/core/rake_task'
desc "Run specs"
-Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = %w(-fs --color)
- t.spec_opts << '--loadby' << 'random'
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = 'spec/**/*_spec.rb'
end
View
2 spec/spec_helper.rb
@@ -12,7 +12,7 @@
config.application_port = 4567
end
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
config.include(Rack::Test::Methods)
config.include(Webrat::Methods)
config.include(Webrat::Matchers)
View
2 warden-github.gemspec
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rack", "~>1.4.0"
s.add_development_dependency "rake"
- s.add_development_dependency "rspec", "~>1.3.0"
+ s.add_development_dependency "rspec", "~>2.8.0"
s.add_development_dependency "webrat"
s.add_development_dependency "sinatra"
s.add_development_dependency "shotgun"

0 comments on commit e38f550

Please sign in to comment.