RSpec Code Examples

 

 

Setting up probes
should catch class methods defined on a superclass0.01726s
should not interfere with instance method call on One0.00224s
should not interfere with class method call0.00062s
should collect calls made on One#an_instance_method0.00062s
should collect calls made on One#a_class_method0.00061s
should not mess with receive of class methods0.00168s
should not mess with receive of class methods on subclasses0.00060s
should not interfere with instance method call on Two0.00079s
should not interfere with class method call0.00079s
should collect calls made on Two#an_instance_method0.00083s
should collect calls made on Two#a_class_method0.00083s
Insight
inserts the Insight toolbar0.56939s
updates the Content-Length0.45670s
serves the Insight assets under /__insight__/0.24667s
modifies HTML responses with a charset0.43018s
does not modify XMLHttpRequest responses0.48303s
modifies XHTML responses0.51212s
does not modify non-HTML responses0.52824s
does not modify server errors0.70823s
redirected when not configured to intercept redirects
passes the redirect unmodified0.56374s
does not show the interception page0.43931s
does not insert the toolbar0.24954s
does not insert the toolbar if even toolbar requested0.47362s
redirected when configured to intercept redirects
shows the interception page0.42596s
should provide a link to the target URL0.47456s
inserts the toolbar if requested0.40544s
does not inserts the toolbar if not requested0.26250s
configured with an IP address restriction
inserts the Insight toolbar when the IP matches0.53270s
is disabled when the IP doesn't match0.29275s
doesn't use any panels0.33815s
configured with a password
should insert the Insight toolbar when the password matches0.44828s
should be disabled when the password doesn't match0.21578s
doesn't use any panels0.44514s
configured with a SQLite database file path
should create a database at the path specified in the options0.90019s
ActiveRecordPanel
heading
displays the total number of instantiated AR objects0.09552s
content
displays the count of instantiated objects for each class0.10779s
RedisPanel
heading
displays the total redis time0.06093s
content
usage table
displays the total number of redis calls0.06690s
displays the total redis time0.05918s
breakdown
displays each redis operation0.04306s
displays the time for redis call0.05424s
displays the arguments for each redis call0.04421s
displays a link to show the backtrace when it's available0.08618s
does not display a link to show the backtrace when it's not available0.05024s
TemplatesPanel
heading
displays the total rendering time0.60393s
content
displays the template paths0.55167s
displays the template children0.54225s
for templates that rendered templates
displays the total time0.57552s
displays the exclusive time0.66355s
for leaf templates
does not display the exclusive time0.61022s
MemoryPanel
heading
displays the total memory0.48014s
displays the memory change during the request0.52724s
TimerPanel
heading
displays the elapsed time0.58118s
content
displays the user CPU time0.80312s
displays the system CPU time0.48204s
displays the total CPU time0.48497s
displays the elapsed time0.60163s
SQLPanel
heading
displays the total SQL query count0.10885s
displays the total SQL time0.16304s
content
displays each executed SQL query0.13163s
displays the time of each executed SQL query0.13578s
sql/execute
displays the query results0.04890s
is forbidden when the hash is missing or wrong0.05185s
is not available when the insight.secret_key is nil0.05997s
is not available when the insight.secret_key is an empty string0.08555s
sql/explain
displays the query explain plan0.05246s
is forbidden when the hash is missing or wrong0.04319s
is not available when the insight.secret_key is nil0.05981s
is not available when the insight.secret_key is an empty string0.13680s
RailsInfoPanel
heading
displays the Rails version0.51632s
content
displays the Rails::Info properties0.61018s
LogPanel
heading
displays 'Log'0.79412s
content
displays recorded log lines0.55311s
Extended Logger
does still return true/false for #add if class Logger0.23215s
With no logger defined
does not err out0.27438s
CachePanel
heading
displays the total memcache time0.49551s
content
usage table
displays the total number of memcache calls0.44353s
displays the total memcache time0.50845s
dispays the number of memcache hits0.55294s
displays the number of memcache misses0.55558s
displays the number of memcache gets0.42222s
displays the number of memcache sets0.80449s
displays the number of memcache deletes0.48594s
displays the number of memcache get_multis0.56037s
breakdown
displays each memcache operation0.46699s
displays the time for each memcache call0.64091s
displays the keys for each memcache call0.48895s
cache operations
expire_all
expires the cache keys0.67732s
returns OK0.65756s
expire
expires the cache key0.66509s
returns OK0.79104s
view_cache
renders the cache key0.71300s
renders non-String cache values properly0.84487s
SpeedTracerPanel
heading
lists traces1.97121s
content
displays the template paths (PENDING: time to build good Speedtracer tests)
displays the template children (PENDING: time to build good Speedtracer tests)
for templates that rendered templates
displays the total time (PENDING: time to build good Speedtracer tests)
displays the exclusive time (PENDING: time to build good Speedtracer tests)
for leaf templates
does not display the exclusive time (PENDING: time to build good Speedtracer tests)