Skip to content

Commit afa7533

Browse files
committed
fix specs ordering
1 parent 7b7958b commit afa7533

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Rakefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ Jeweler::RubygemsDotOrgTasks.new
2828
require 'rspec/core'
2929
require 'rspec/core/rake_task'
3030
RSpec::Core::RakeTask.new(:spec) do |spec|
31-
spec.pattern = FileList['spec/**/*_spec.rb']
32-
end
33-
34-
RSpec::Core::RakeTask.new(:rcov) do |spec|
35-
spec.pattern = 'spec/**/*_spec.rb'
36-
spec.rcov = true
31+
spec.pattern = FileList['spec/**/*_spec.rb'].sort_by do|n|
32+
# we need to run post_rails_init_spec as the latest
33+
# because it cause unrevertable changes to runtime
34+
n.include?("post_rails_init_spec") ? 1 : 0
35+
end
3736
end
3837

3938
task :default => :spec

0 commit comments

Comments
 (0)