Permalink
Browse files

fix specs ordering

  • Loading branch information...
bogdan committed Jul 23, 2012
1 parent 7b7958b commit afa7533530e28b77af927f040014261ff9ddbd21
Showing with 5 additions and 6 deletions.
  1. +5 −6 Rakefile
View
@@ -28,12 +28,11 @@ Jeweler::RubygemsDotOrgTasks.new
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
- spec.pattern = FileList['spec/**/*_spec.rb']
-end
-
-RSpec::Core::RakeTask.new(:rcov) do |spec|
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
+ spec.pattern = FileList['spec/**/*_spec.rb'].sort_by do|n|
+ # we need to run post_rails_init_spec as the latest
+ # because it cause unrevertable changes to runtime
+ n.include?("post_rails_init_spec") ? 1 : 0
+ end
end
task :default => :spec

0 comments on commit afa7533

Please sign in to comment.