Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
an example sinatra/rspec/datamapper/webrat app with selenium built in
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
views
.gitignore
README.markdown
Rakefile
as_time_goes_by.rb
config.ru

README.markdown

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
Something went wrong with that request. Please try again.