search for: urlgonom

Displaying 5 results from an estimated 5 matches for "urlgonom".

2006 Feb 08
8
Strategies for Unit testing 2 databases
Hi, My application spans 2 (or more) databases for some very specific reasons... My models are working fine, even dynamically establishing connections as needed at runtime, and spanning relationships across the databases (which really impressed me). The problem is, I can''t seem to force Units for these models (that use a secondary db) to load their fixtures into and use the
2006 Feb 01
3
Testing components
I''m using template components to modularize an application I''m working on and am really happy with the way it''s going. Unfortunately, all my attempts at writing functional tests for them fail. Trying to duplicate my normal controller tests I have: require File.dirname(__FILE__) + ''/../test_helper'' require File.dirname(__FILE__) +
2006 Feb 07
0
Creating DB from within Rails
Hi, Is it possible to create a new database (I know how to establish a secondary connection) from within rails, using ActiveRecord::Schema? There''s a create_database method under ActiveRecord::ConnectionAdapters::SQLServerAdapter but I don''t see similar methods for the other adapters. Thanks, Mike
2006 Feb 21
0
components using helpers
Is it by design that my custom components aren''t able to pick up my custom helpers defined in module ApplicationHelper, or am I missing something? This doesn''t really make sense to me, as components are intended to function like sub-actions... so their views should automatically pick up ApplicationHelper. Thanks, Mike
2006 Feb 01
3
Test data life cycle confusion
Hi, It states on page 140 of Agile Web Development with Rails: Here?s the bottom line: even if a test method updates the test database, the database is put back to its default state before the next test method is run. This is important because we don?t want tests to become dependent on the results of previous tests. Well, I''ve been running into a brick wall with some functional tests