Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

edit readme

  • Loading branch information...
commit 7cd380f8bbf739bcf9c0db5a4b0d61860286ef2d 1 parent 1c47742
Andrey Rozhkovsky authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 README.md
View
20 README.md
@@ -21,24 +21,24 @@ Or install it yourself as:
Add env var when running test to collect and
print statistic after test suite
- PROFILE_FACTORY_GIRL=1
+ PROFILE_FACTORY_GIRL=1
What's happennig is:
- RSpec.configure do |config|
- config.before(:suite) do
- ActiveSupport::Notifications.subscribe("factory_girl.run_factory") do |name, start, finish, id, payload|
- FactoryGirlProfiling::Profiler.add(name, start, finish, id, payload)
+ RSpec.configure do |config|
+ config.before(:suite) do
+ ActiveSupport::Notifications.subscribe("factory_girl.run_factory") do |name, start, finish, id, payload|
+ FactoryGirlProfiling::Profiler.add(name, start, finish, id, payload)
+ end
end
- end
- config.after(:suite) do
- FactoryGirlProfiling::Profiler.print_results
- FactoryGirlProfiling::Profiler.reset
+ config.after(:suite) do
+ FactoryGirlProfiling::Profiler.print_results
+ FactoryGirlProfiling::Profiler.reset
+ end
end
- end
For more info about FactoryGirl read
https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#activesupport-instrumentation
Please sign in to comment.
Something went wrong with that request. Please try again.