You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
describe 'MyCode' do context 'when we expect no queries' do it 'does not make database queries' do expect { subject.make_no_queries }.to_not make_database_queries end end context 'when we expect queries' do it 'makes database queries' do expect { subject.make_some_queries }.to make_database_queries end end context 'when we expect exactly 1 query' do it 'makes database queries' do expect { subject.
Run this test once, and VCR will record the HTTP request to fixtures/vcr_cassettes/synopsis.yml. Run it again, and VCR will replay the response from iana.org when the HTTP request is made. This test is now fast (no real HTTP requests are made anymore), deterministic (the test will continue to pass, even if you are offline, or iana.org goes down for maintenance) and accurate (the response will cont
ABProf attempts to use simple A/B test statistical logic and apply it to the question, "which of these two programs is faster?" Most commonly, you profile by running a program a certain number of times ("okay, burn it into cache for 100 iterations, then run it 5000 times and divide the total time by 5000"). Then, you make changes to your program and do the same thing again to compare. Real statist
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く