CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 31 Aug 2025 00:49:49 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100224230551
location: https://web.archive.org/web/20100224230551/https://github.com/methodmissing/em-spec
server-timing: captures_list;dur=0.492495, exclusion.robots;dur=0.017699, exclusion.robots.policy;dur=0.008930, esindex;dur=0.011526, cdx.remote;dur=7.608583, LoadShardBlock;dur=185.090886, PetaboxLoader3.datanode;dur=106.328331, PetaboxLoader3.resolve;dur=33.732498
x-app-server: wwwb-app225
x-ts: 302
x-tr: 214
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app225; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 31 Aug 2025 00:49:49 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Wed, 24 Feb 2010 23:05:48 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "4bdbcccc5dd1e236d2e58bc0beeec6be"
x-archive-orig-x-runtime: 281ms
x-archive-orig-content-length: 21679
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 24 Feb 2010 23:05:51 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 09 Jun 2009 15:31:09 GMT", ; rel="prev memento"; datetime="Fri, 14 Aug 2009 10:06:49 GMT", ; rel="memento"; datetime="Wed, 24 Feb 2010 23:05:51 GMT", ; rel="next memento"; datetime="Wed, 28 Jul 2010 14:13:44 GMT", ; rel="last memento"; datetime="Tue, 27 Oct 2020 17:05:38 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_14_20100224212624_crawl102-c/52_14_20100224230520_crawl101.arc.gz
server-timing: captures_list;dur=0.460003, exclusion.robots;dur=0.017945, exclusion.robots.policy;dur=0.008278, esindex;dur=0.010639, cdx.remote;dur=16.734691, LoadShardBlock;dur=171.610037, PetaboxLoader3.datanode;dur=144.528048, PetaboxLoader3.resolve;dur=139.790634, load_resource;dur=185.152847
x-app-server: wwwb-app225
x-ts: 200
x-tr: 430
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
methodmissing's em-spec at master - GitHub
This service is courtesy of Pledgie.
methodmissing / em-spec forked from tmm1/em-spec
- Source
- Commits
- Network (6)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Simple BDD API for testing asynchronous Ruby/EventMachine code — Read more
em-spec /
name | age | message | |
---|---|---|---|
![]() |
README | Sat Aug 30 01:38:42 -0700 2008 | require "em/spec" to use [tmm1] |
![]() |
Rakefile | Thu Mar 05 07:57:49 -0800 2009 | Some respect for rspec [methodmissing] |
![]() |
em-spec.gemspec | Loading commit data... ![]() |
|
![]() |
lib/ | ||
![]() |
test/ |
README
Simple BDD API for testing asynchronous Ruby/EventMachine code (c) 2008 Aman Gupta (tmm1) The API is identical to Bacon, except that you must explicitly call 'done' after all the current behavior's assertions have been made: require 'em/spec' EM.describe EventMachine do should 'have timers' do start = Time.now EM.add_timer(0.5){ (Time.now-start).should.be.close 0.5, 0.1 done } end should 'have periodic timers' do num = 0 start = Time.now timer = EM.add_periodic_timer(0.5){ if (num += 1) == 2 (Time.now-start).should.be.close 1.0, 0.1 EM.__send__ :cancel_timer, timer done end } end end Resources: Git repository: https://github.com/tmm1/em-spec Bacon: https://groups.google.com/group/comp.lang.ruby/browse_thread/thread/30b07b651b0662fd Initial announcement: https://groups.google.com/group/eventmachine/browse_thread/thread/8b4e7ead72f9d013