sinatra-and-cucumber.git
14 years agoAdding another Homepage feature stepmaster
Karel Minarik [Fri, 11 Sep 2009 17:49:10 +0000 (11 19:49 +0200)]
Adding another Homepage feature step

Thanks, Pepe in Fraktal :)

14 years agoAdding steps to implement the "Home page" scenario
Karel Minarik [Mon, 7 Sep 2009 21:47:47 +0000 (7 23:47 +0200)]
Adding steps to implement the "Home page" scenario

NOTES
-----

* `visit` is Webrat method (http://docs.rdocul.us/webrat/master/classes/Webrat/Session.html#M000092)
* We are using standard Test::Unit assertions

14 years agoAdding specification/feature for homepage (features/homepage.feature)
Karel Minarik [Mon, 7 Sep 2009 21:21:18 +0000 (7 23:21 +0200)]
Adding specification/feature for homepage (features/homepage.feature)

NOTE: We will add steps neccessary to run the feature in the next step

14 years agoAdding simple "Hello World" Sinatra application
Karel Minarik [Mon, 7 Sep 2009 21:10:59 +0000 (7 23:10 +0200)]
Adding simple "Hello World" Sinatra application

NOTE: We are deliberately reversing the proper TDD sequence for "test-after" one, for the purpose of this demonstration

14 years agoSimplifiying support for Cucumber (features/support/env.rb)
Karel Minarik [Mon, 7 Sep 2009 22:09:50 +0000 (8 00:09 +0200)]
Simplifiying support for Cucumber (features/support/env.rb)

NOTE: Modeled after Hancock's setup [http://github.com/atmos/hancock/blob/master/features/support/env.rb]

14 years agoAdding support for Cucumber (features/support/env.rb)
Karel Minarik [Mon, 7 Sep 2009 17:30:07 +0000 (7 19:30 +0200)]
Adding support for Cucumber (features/support/env.rb)

1. $ mkdir features features/step_definitions features/support
2. $ wget --output-document=features/support/env.rb http://github.com/aslakhellesoy/cucumber/raw/master/examples/sinatra/features/support/env.rb
3. Rename app.rb to application.rb
5. Swap RSpec for Test::Unit :P

14 years agoAdding Rakefile and README
Karel Minarik [Mon, 7 Sep 2009 22:19:18 +0000 (8 00:19 +0200)]
Adding Rakefile and README

14 years agoInitial commit -- application skeleton
Karel Minarik [Mon, 7 Sep 2009 17:27:23 +0000 (7 19:27 +0200)]
Initial commit -- application skeleton

$ touch application.rb Rakefile README.txt