I just ran ruby script\generate controller MyTest and got exists app/controllers/ exists app/helpers/ create app/views/my_test exists test/functional/ create app/controllers/my_test_controller.rb create test/functional/my_test_controller_test.rb create app/helpers/my_test_helper.rb how do I run my test and make assertions about my controller. I would like to test driven development.
ruby test/functional/my_test_controller_test.rb Edit that file to add your tests, watch them fail, add the functionality in your controller, run tests to make them pass, rinse and repeat On 8/4/05, Skriloff, Nicholas <SkriloffN-f4ouqFeUts2a0hU+lRkGgZVzexx5G7lz@public.gmane.org> wrote:> I just ran > ruby script\generate controller MyTest > and got > exists app/controllers/ > exists app/helpers/ > create app/views/my_test > exists test/functional/ > create app/controllers/my_test_controller.rb > create test/functional/my_test_controller_test.rb > create app/helpers/my_test_helper.rb > > > how do I run my test and make assertions about my controller. > > I would like to test driven development. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Here''s a good tutorials from the rails website: http://manuals.rubyonrails.com/read/book/5 On 8/4/05, Skriloff, Nicholas <SkriloffN-f4ouqFeUts2a0hU+lRkGgZVzexx5G7lz@public.gmane.org> wrote:> > I just ran > ruby script\generate controller MyTest > and got > exists app/controllers/ > exists app/helpers/ > create app/views/my_test > exists test/functional/ > create app/controllers/my_test_controller.rb > create test/functional/my_test_controller_test.rb > create app/helpers/my_test_helper.rb > > > how do I run my test and make assertions about my controller. > > I would like to test driven development. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- ~~~~~~~~~~~~~~~~~~~ D''Andrew Thompson http://dathompson.blogspot.com _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Thanks -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of D''Andrew Thompson Sent: Thursday, August 04, 2005 9:04 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] How do I run Here''s a good tutorials from the rails website: http://manuals.rubyonrails.com/read/book/5 On 8/4/05, Skriloff, Nicholas < SkriloffN-f4ouqFeUts2a0hU+lRkGgZVzexx5G7lz@public.gmane.org <mailto:SkriloffN-f4ouqFeUts2a0hU+lRkGgZVzexx5G7lz@public.gmane.org> > wrote: I just ran ruby script\generate controller MyTest and got exists app/controllers/ exists app/helpers/ create app/views/my_test exists test/functional/ create app/controllers/my_test_controller.rb create test/functional/my_test_controller_test.rb create app/helpers/my_test_helper.rb how do I run my test and make assertions about my controller. I would like to test driven development. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails -- ~~~~~~~~~~~~~~~~~~~ D''Andrew Thompson http://dathompson.blogspot.com _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails