similar to: depot test-driven development exercise

Displaying 20 results from an estimated 2000 matches similar to: "depot test-driven development exercise"

2006 May 05
1
Agile Rails (1st edition), depot TDD "exercise"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I''ve been working my way through the Agile book and just completed the depot sample application. I learned quite a bit along the way. On page 171 we are led through the creation of a test (that fails) for new code. The new code (a search function) is left as an exercise for the reader. Well, I think I solved it but I''m not
2006 May 06
0
RE: Rails Digest, Vol 20, Issue 156
I am looking for a ruby hosting service. Can any one recommend one for me. -----Original Message----- From: rails-request@lists.rubyonrails.org [mailto:rails-request@lists.rubyonrails.org] Sent: Saturday, May 06, 2006 7:37 AM To: rails@lists.rubyonrails.org Subject: Rails Digest, Vol 20, Issue 156 Send Rails mailing list submissions to rails@lists.rubyonrails.org To subscribe or
2006 Apr 11
2
Extending Depot Example
Hi I am new to the whole Rails/Ruby world as having come from a MS .NET background, but I have followed the Depot example in the Agile Web Dev. with Rails book with relative ease. However as an exercise to see how much I had understood, I thought I would attempt to modify the example a bit and add a Quantity field to the store index so as to pass that value into the cart. I have extended the
2006 Mar 06
5
Rails MySQL query
Hi, I?m following the Depot tutorial in Agile Web Development with Rails. I need some help to display products thats in one specific category. mysql> select * from products where category = "jackets" does what I want, but I?m not sure how to make a list and display it in rails? This code displays every product with some of its fields, but I want it to only display the products
2007 Oct 26
1
post_via_redirect - testing problem
I''ve got an integration test that''s failing but i can''t work out why: Here''s the action being tested - in case anyone recognises it, it''s based on the Depot app in Agile Web Dev with Rails. def checkout @in_checkout = true #don''t let user checkout with an empty cart if @cart.items.empty? redirect_to_index("Your cart is
2005 Dec 18
1
assert_template fails?
Hi All, I have a seemingly simple problem - but can''t figure out the problem. I have a simple functional test like so: def test_should_show_search_dropdown get :index assert_response :success assert_template :search end Inspite of having search.rhtml in /app/views/layout, it fails with an error: 1) Error: test_should_show_search_dropdown(SearchControllerTest):
2006 Feb 21
0
Blog of building Agile Web Development w/Rails Depot App using Ackbar/KirbyBase (Chapter 6-7)
Sorry for the long Subject line, but I couldn''t figure out what else to call it. :-) Just a quick announcement to tell you that I have worked through Chapters 6 and 7 so far of "Agile Web Development with Rails", using Ackbar/KirbyBase to develop the Depot app instead of MySQL. You can find my blog about it at: http://houseonfire.wordpress.com For those who
2005 Dec 24
2
Common menu
Hi, I''m releasing my first rails application and I''d like to have a common menu in all my templates. Do I have to include an rhtml from .rb or other rhtml ? Some sample code pls ? Regards, Fabian
2006 Sep 26
0
some help with functional testing of nested routes
I have the following functional test in test/functional for testing my products_controller: require File.dirname(__FILE__) + ''/../test_helper'' require ''products_controller'' # Re-raise errors caught by the controller. class ProductsController def rescue_action(e) raise e end end class ProductsControllerTest < Test::Unit::TestCase fixtures
2006 Mar 29
0
css, div-tags and ajax
Hi. I copied parts of the ajax-examples in Agile Rails prog. and modified it so it searched for zip-codes. The result is displayed in search.rhtml. The first version looked like this, I liked the look of the "add to cart" in the depot-example. :class => ''button1'' is originally addtocart which I renamed in the .css-file. <% for city in @cities %> <%=
2007 Feb 07
1
The Depot "Add to Cart" sessions question (2.ed agile book)
Hello, Im in the process of working my way through the 2.ed of the agile book. As many of you already know, the book goes through the regular development cycle of the Depot application. I have hit a wall when they started talking about the sessions and the exact mechanics of how an item is added to the session. The code looks like this: depot/app/controllers/store_controller: def add_to_cart
2006 Nov 04
1
Writing better HTML/CSS for the Depot app
Folks: A couple of people have mentioned that the HTML I use in the Depot app could be better (and I don''t necessarily disagree: I''m not a CSS maven). What''s the general feeling on this? Is it worth using more compliant markup for the Depot HTML? If so, would anyone be willing to markup the depot_r application (ideally so that it looks the same and I
2006 Jun 16
4
Depot App: Upload Images
Hello, I''m a newbie to Ruby on Rails and like many others, I have been working through the depot application in the Agile Web Development book. I was wondering if anyone had enhanced the depot application to include the upload of images for each product? The following describes the sort of thing that I have been asked to produce for a client, so apologies if the information is not
2006 Jul 17
5
Functional Tests misbehaving with Globalize
Howdy all Apologies to the folks subscribed to the globalize list for dual posting this message... I''ve got a project running globalize and rails 1.1.4, and I''ve only recently adopted a strong love for testing. Now my models are 100% tested (I must note that I do not make use of any translations in the database yet), and I''ve now started with functional tests before
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
Signed-off-by: Scott Seago <sseago at redhat.com> --- src/test/functional/host_controller_test.rb | 41 -------------------- .../functional/managed_node_configuration_test.rb | 14 ++++--- src/test/functional/nic_controller_test.rb | 8 ---- src/test/functional/permission_controller_test.rb | 15 ++++--- src/test/functional/quota_controller_test.rb | 2 +-
2006 Apr 07
1
no interpreter found - depot
Hi, I am working on the tutorial"DEpot" and I was running ok the other day. Today I went back to the turorial to review. I started the database and tried to run the application. I get this messafe "No interpreter found""Before launching a Ruby application please specify an interpreter using the Ruby Interpreter Preferences page" I am not sure what I have done. Any
2006 Aug 04
2
Functional Testing Anomoly
I have a test method (below). def test_save_failed post( :edit, :record => StatusChanger.invalid_data_hash) assert_response :success assert_template ''edit'' assert assigns(:record) assert_equal false, assigns(:record).valid? end This particular method is part of a larger set of functional tests. If I run, $ ruby controller_test.rb -n
2006 May 16
3
Testing How To Question
I''m using the functional test for a method like this: def test_create post :create, :phase => ''copynew'', :id => 1 assert_response :success assert_template ''create'' assert_tag :content => ''New Item'' assert_not_nil @item end This posts a request to the create method in the controller. Is there any way to look
2006 Apr 20
0
problem in "depot" app - cart contents not shown on checkout
Hi all - I''m working my way through the "depot" tutorial. I''m having a problem with the section where the cart contents are displayed on the order page. The cart contents display fine after I add an item to the cart, but simply does not show up on the order page. Any help would be appreciated. I''m running Locomotive 1.0.0c on Tiger with MySQL from
2006 Feb 24
0
Depot Application - Adding a Quantity field to the Store
Hello, I''m just getting started with Ruby on Rails. Of course, I bought the "Agile Programming..." book. I went through the shopping cart (depot) tutorial without any problem. However, I would like to change the cart so that one can enter a quantity for each item desired. I''m assuming that each item would need to be converted to include a form with the a hidden field