Permalink
Browse files

Set default order to :random

  • Loading branch information...
1 parent 1416314 commit b6022dc2d4bac9138e6c3def0ca7fd4a2bd2629e @justinko justinko committed Oct 25, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 spec/spec_helper.rb
View
9 spec/spec_helper.rb
@@ -16,12 +16,13 @@ def self.run_all(reporter=nil)
end
end
-RSpec.configure do |c|
- c.before(:each) do
+RSpec.configure do |config|
+ config.before(:each) do
@real_world = RSpec.world
RSpec.instance_variable_set(:@world, RSpec::Core::World.new)
end
- c.after(:each) do
+ config.after(:each) do
RSpec.instance_variable_set(:@world, @real_world)
end
-end
+ config.order = :random
+end

0 comments on commit b6022dc

Please sign in to comment.