atmos / as_time_goes_by

an example sinatra/rspec/datamapper/webrat app with selenium built in

This URL has Read+Write access

as_time_goes_by / README.markdown
100644 41 lines (30 sloc) 1.153 kb

as_time_goes_by

This is an example sinatra app integrating with webrat. It's a good starting point for creating a sinatra/rspec/datamapper/webrat app.

Installation

% gem sources
*** CURRENT SOURCES ***

http://gems.rubyforge.org
% sudo gem sources -a http://gems.github.com
http://gems.github.com added to sources
% sudo gem install sinatra atmos-webrat json selenium-client do_sqlite3 dm-core

Testing

There are only acceptance tests here, but they're kinda cool.
You can easily run both console and selenium driven tests from the same spec. There's also rcov coverage.

To just run the console based webrat tests run the following:

% rake

To run the selenium tests run the following:

% SELENIUM=true rake

Running

% rackup config.ru
% open http://localhost:9292