Displaying 7 results from an estimated 7 matches for "pfima".
Did you mean:
fima
2006 May 05
1
testing for flash.now values
Is there any way in a functional test to get the value of the flash hash
if the value was set using flash.now? It doesn''t appear to be visible in
flash in the test. Example:
Controller:
def index
flash.now[''notice''] = ''this is the index''
end
Functional Test:
def test_index_flash
get :index
assert_equal ''this is the index'',
2006 Feb 09
2
select options for HABTM?
I''ve looked through the docs and the wiki and can''t
figure out how to go about generating select options
and the update function for an item that has a HABTM
relationship.
I have a ''parks'' table and the park model has a HABTM
to the ''states'' table. On the park edit page, I''d like
a multiple select box to appear with all states show,
2006 May 09
2
load fixtures
I''m finally getting beyond using basic test fixtures, and a few questions
have popped up. Has anyone found ways to do these?
1. Use a test fixture that is named differently from its table name? We''d like
to have more than one possible fixture per table. (Or perhaps use test fixtures
named similarly but in different directories.)
2. Load a test fixture for one test method only
2006 May 02
96
[ADV] Second Edition of Agile Web Development with Rails
ANNOUNCING AGILE WEB DEVELOPMENT WITH RAILS, SECOND EDITION
===========================================================
http://www.pragmaticprogrammer.com/titles/rails2/
Rails has changed a lot since we announced the first edition of the
book a year ago. DHH says that the 1.1 release "boasts more than 500
fixes, tweaks, and features from more than 100 contributors." Who
are we to
2006 Jun 07
0
revised rake doc:app executes twice
I''m trying to create a new rake task that will generate slightly customized RDoc
documentation for my Rails app. So I''ve created a new task (shown below) in
lib/tasks/doc.rake. It generates documentation OK, but it executes the task
twice every time I ''rake doc:custom''.
namespace :doc do
desc "Generate customized documentation for this application"
2006 May 03
0
const_missing & undefined method problems upgrading to Rails 1.1.2
Finally getting around to upgrading our application to Rails 1.1.2.
Of course, nothing runs correctly after the upgrade. So far two major problems,
perhaps related. Any help would be greatly appreciated.
1. We''re getting const_missing errors. Specifically when trying to use class
constants in a custom helper method, being called from a layout template. The
class constants were for
2006 May 09
1
leftover fixture data causing errors
Maybe I''m not getting fixtures, but... I''m having problems as I start using
fixtures in functional tests.
Data is left in my test database after running functional tests. Not the data
created by the test-method (I''m using transactional fixtures), but data from the
fixtures themselves. Fixture loading will delete & reload the data again when
the test is re-run, but