Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set default order to :random

  • Loading branch information...
commit b6022dc2d4bac9138e6c3def0ca7fd4a2bd2629e 1 parent 1416314
Justin Ko justinko authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 spec/spec_helper.rb
9 spec/spec_helper.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.