Git Product home page Git Product logo

monquartier's Introduction

madrid-rb-feb-2010

This is the sample application I used in my talk about "Acceptance testing with Steak and Capybara" I gave in the Madrid-rb February 2010 meeting. Slides can be read and downloaded at SlideShare (in spanish).

It's a (very) simple Rails application tested with Steak and Capybara. You can follow the development process using the tags (git checkout 1, git checkout 2, etc.). Once at the end, you can run the tests (and read the configurations needed) with the different adapters using the rack_test, selenium and culerity branches.

  1. Initial status, just after generating the rails app
  2. We generated the RSpec and Steak configurations
  3. We configured Steak to use Capybara
  4. We implemented our first feature (tested with RackTest)
  5. We implemented our second feature (tested with RackTest)
  6. We converted that second feature to Ajax, in an unobstrusive way so RackTest tests still pass
  7. We configured Capybara to use Selenium and ran the same tests. Although that change is not checked in, we commented app/controllers/talks_controller.rb:10 to demostrate we were actually running the Ajax version
  8. We configured Capybara to use Culerity and repeated the same tests again

Then we went to Las Jarritas and drank a lot of beer ;)

monquartier's People

Contributors

bomberstudios avatar porras avatar valakirka avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.