Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atmos/as_time_goes_by
an example sinatra/rspec/datamapper/webrat app with selenium built in
https://github.com/atmos/as_time_goes_by
Last synced: 3 months ago
JSON representation
an example sinatra/rspec/datamapper/webrat app with selenium built in
- Host: GitHub
- URL: https://github.com/atmos/as_time_goes_by
- Owner: atmos
- Created: 2009-02-12T01:24:18.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2009-02-21T04:37:56.000Z (almost 16 years ago)
- Last Synced: 2024-04-15T13:59:30.136Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 78.1 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
[as_time_goes_by][timegoesby]
=============================This is an example [sinatra][sinatrarb] app integrating with webrat. It's
a good starting point for creating a [sinatra][sinatrarb]/[rspec][rspec]/[datamapper][datamapper]/[webrat][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-coreTesting
=======There are only [acceptance tests][webrat] 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 rakeRunning
=======
% rackup config.ru
% open http://localhost:9292[sinatrarb]: http://sinatrarb.com
[rspec]: http://rspec.info
[datamapper]: http://datamapper.org
[timegoesby]: http://www.youtube.com/watch?v=eIiAdHGi3AI
[webrat]: http://github.com/brynary/webrat