search for: first_id

Displaying 3 results from an estimated 3 matches for "first_id".

Did you mean: first_uid
2006 Sep 26
0
some help with functional testing of nested routes
...def rescue_action(e) raise e end end class ProductsControllerTest < Test::Unit::TestCase fixtures :products, :categories def setup @controller = ProductsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @first_id = products(:first).id @category_id = categories(:first).id end def test_index # HTTP GET get :index assert_response :success assert assigns(:products) assert_template ''index'' end def test_new # HTTP GET get :new assert_response :succes...
2008 Mar 23
0
Committing a record update to the DB from a test
...ithin the test, my changes do not affect the DB: o = Order.create(:name => ''n'', :email => ''e'', :address => ''a'', :pay_type => ''po'') o.save o.name = ''m'' o.save order = Order.find(@first_id) #order.pay_type = ''po''; order.address = ''dummy address''; order.email = ''d@d.d''; order.name = ''first ammended'' order.update_attributes({ :pay_type => ''po'', :address => ''123 hh road'&...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...lock) + end + } + when 1 # events with an id + class_eval %Q{ + def #{ev_type.name}(id, &block) + connect(id, Wx::ID_ANY, #{ev_type.const}, &block) + end + } + when 2 # events with id range + class_eval %Q{ + def #{ev_type.name}(first_id, last_id, &block) + connect(first_id, last_id, #{ev_type.const}, &block) + end + } + end </ins><span class="cx"> end </span><ins>+ + +# TODO +# if defined?(Wx::Scintilla) +# EVENT_TYPE_MAPPING.merge( +# Wx::EVT_SCI_CHAN...