Permalink
Browse files

Merge branch 'sferik-update_template'

  • Loading branch information...
2 parents 654367d + ed03bda commit 12fd9da689ebe7d5fb8196bf49a5d34cabbe46c8 @alindeman alindeman committed Jun 2, 2012
View
2 features/controller_specs/render_views.feature
@@ -71,7 +71,7 @@ Feature: render_views
end
end
"""
- When I run `rspec spec --format documentation`
+ When I run `rspec spec --order default --format documentation`
Then the output should contain:
"""
WidgetsController
View
1 features/model_specs/transactional_examples.feature
@@ -62,6 +62,7 @@ Feature: transactional examples
RSpec.configure do |c|
c.use_transactional_examples = false
+ c.order = "default"
end
describe Widget do
View
2 lib/generators/rspec/install/templates/.rspec
@@ -1 +1 @@
---colour
+--color
View
6 lib/generators/rspec/install/templates/spec/spec_helper.rb
@@ -29,4 +29,10 @@
# automatically. This will be the default behavior in future versions of
# rspec-rails.
config.infer_base_class_for_anonymous_controllers = false
+
+ # Run specs in random order to surface order dependencies. If you find an
+ # order dependency and want to debug it, you can fix the order by providing
+ # the seed, which is printed after each run.
+ # --seed 1234
+ config.order = "random"
end

0 comments on commit 12fd9da

Please sign in to comment.