Skip to content

Instantly share code, notes, and snippets.

View joahking's full-sized avatar
🏠
Working from home

Joaquin Rivera Padron joahking

🏠
Working from home
View GitHub Profile
let's make a list of sinatra-based apps!
apps:
- http://github.com/cschneid/irclogger "Sinatra based irclogger.com"
- http://github.com/rtomayko/wink "minimalist blogging engine"
- http://github.com/foca/integrity "The easy and fun Continuous Integration server"
- http://github.com/sr/git-wiki "git-powered wiki"
- http://github.com/entp/seinfeld "Seinfeld-inspired productivity calendar to track your public github commits."
- http://github.com/karmi/marley "Marley, the blog engine without <textareas>. See in action @ www.restafari.org"
- http://github.com/ichverstehe/gaze "Serve up your Markdown files with this tiny Sinatra app!"
# Rack RSpec HTML is a simple Rack application to:
## browse your spec and features directories
## run *_spec.rb and *.feature files living there.
# I only use it for rails, but should not be difficult to extend
# INSTALL: copy rack_rspec_html.rb into your #{RAILS_ROOT}/spec directory
# START: ruby -Ilib spec/rack_rspec_html.rb
# visit http://localhost:9292 to see your specs and features
# trying out the scenario outlines cucumber feature
$ gem list cucumber; gem list webrat
*** LOCAL GEMS ***
cucumber (0.1.16)
webrat (0.4.1)
# the feature we are trying features/manage_cukes.feature
Feature: Manage cukes
In order to use scenario outlines
testing culerity, everything goes really cool, except the memory consume: too many (?) java/ruby processes remain in memory leaving my debian lenny wasted
THIS ARE EXPERIMENTS IN PROGRESS, cant seem to repeat the results in a way to provide more accurate testing bed. This seems to happen in one of my projects that extends insoshi http://github.com/joahking/insoshi/tree/master and heavily uses javascript (at the time some broken ones) and Google GMap API
after several running of cucumber feature with some javascript errors I end up with java proccesses eating my CPUs
$ uname -a; java -version; jruby -v
Linux pinar 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux
java version "1.6.0_0"
@joahking
joahking / gist:67396
Created February 20, 2009 09:44 — forked from christos/gist:39038
#
# cucumber.yml
#
# Filter which features are run with each profile by the file extension
webrat: --require features/steps/common --require features/support/webrat_env.rb --exclude selenium.feature --format progress
selenium: --require features/steps/common --require features/support/selenium_env.rb --exclude webrat.feature --format progress
#
# features/support/env.rb
# celerity is not getting the ajax response back
# this is a stack trace from http://github.com/joahking/cukes/tree/master/ where we are
# running cucumber features for webrat together with celerity
# please refer to project to see details
# we ran this:
$ cucumber -p celerity
(rdb:1) c
When I follow "ajax link" # features/step_definitions/culerity_steps.rb:40
#!/usr/bin/env jruby
# fast script for running javascript unit tests
# requires a bit of setup, as it uses jruby
# see http://celerity.rubyforge.org/
require "rubygems"
require "celerity"
module Javascript
@joahking
joahking / a bunch of celerity specs on GMap
Created March 8, 2009 15:36
does GMap breaks celerity/HtmlUnit ?
h1. We are spec-ing that celerity (HtmlUnit) does not break after a call to GMap API
Does specs pass for you??? any help would be appreciated :-)
on files you find the web app and the celerity specs.
h2. The rack app.
celerack.rb is a rack that returns a simple page with a form and 3 buttons:
# 1. submit one
insoshi searches_controller_spec.rb fail, are you seing this too?
$ git log -n1
commit 8764d0977c15fe360e34b82e54ca76639c73472f
Author: Michael Hartl <michael@michaelhartl.com>
Date: Thu Apr 9 12:06:26 2009 -0700
Switched to the MIT License
$ rake ultrasphinx:configure RAILS_ENV=test
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gml='http://www.opengis.net/gml' xmlns:georss='http://www.georss.org/georss' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gCal='http://schemas.google.com/gCal/2005' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/"A04BQH47eCp7I2A9WxJTFEQ."'><id>http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full</id><updated>2009-04-23T15:19:11.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/><title>calendar@minuevavida.es</title><subtitle>Calendario de Reuniones de La Iglesia Evangelica Nueva Vida</subtitle><link rel='alternate' type='text/html' href='http://www.google.com/calendar/embed?src=calendar@minuevavida.es'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full'