>> (b) running rspec tests [test mode]
> Not sure about (b), but for (a) put this in your ~/.irbrc
For (b), gem install assert_efficient_sql, then put this around your RSpec
money-line:
inspect_sql :verbose => true do
concoct_sql()
end
It will spew out your SQL statements, and their EXPLAIN results, so you can see
the bottlenecks.
It only works for MySQL tho...
Also, put in require 'assert_efficient_sql', and this:
Spec::Runner.configure do |c|
c.include Test::Unit::Assertions
end
--
Phlip
http://flea.sourceforge.net/resume.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---