Displaying 3 results from an estimated 3 matches for "already_loaded_fixtur".
Did you mean:
already_loaded_fixtures
2006 Jun 13
2
Locating an arbitrary fixture...
...39;'t
know what class its working on, let alone what fixture names are
possible.
I''ve tried digging around some in the foxture source file to see exactly
how they are implemented, but its not quite clear yet. I''ve been trying
to do something (very messy) like:
tmp =
@@already_loaded_fixtures[self.class][@klass.to_s.downcase.pluralize]
tmp is now a double nested array. However it appears to be protected
in some manner as tmp[0] returns nil. If I flatten the list, the
"protection'' is still present. I can''t access the elements by index. I
can''t...
2007 Jul 22
18
db:fixtures:load order
I was trying to deal with foreign key issues related to order of
fixture loading when I came across this:
http://techpolesen.blogspot.com/2007/04/rails-fixture-tips.html
This got me looking deeper into rails and I noticed that
db:fixtures:load calls Fixtures.create_fixtures once for each fixture
file. However, Fixtures.create_fixtures is capable of taking multiple
files and also handle the
2007 Dec 06
43
Mocks? Really?
OK, so i''ve played a bit with mocks and mock_models in controller and
view tests and i have a question. Is this statement really correct:
"We highly recommend that you exploit the mock framework here rather
than providing real model objects in order to keep the view specs
isolated from changes to your models."
(http://rspec.rubyforge.org/documentation/rails/writing/views.html