Skip to content

Commit

Permalink
Set default order to :random
Browse files Browse the repository at this point in the history
  • Loading branch information
justinko committed Oct 25, 2011
1 parent 1416314 commit b6022dc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.