Displaying 3 results from an estimated 3 matches for "testfixtur".
Did you mean:
testfixture
2010 May 26
3
Plugin test fixtures
Just spent a good bit of time trying to figure out why I couldn''t get
fixtures to work in a plugin test. I was including
ActiveRecord::TestFixtures into ActiveSupport::TestCase and trying to
get fixtures to automatically reload for every test like regular Rails
tests.
The problem was in the first line of
ActiveRecord::TestFixtures.setup_fixtures:
return unless defined?(ActiveRecord) &&
!ActiveRecord::Base.configurations.blank?...
2011 Dec 25
1
Fixtures vs Fixture class, what is the intended purpose?
...ture.initialize` does nothing but set up two instance
variables, and it is not called anywhere in fixtures.rb. (Maybe i''ll
try to remove it and run tests, to see what happens.)
I am also considering to propose changing some fixtures API, like to
make the (undocumented?) class attribute
`TestFixtures::fixture_table_names` to hold a Hash of `"fixture_name" =>
:table_name`, similarly to `TestFixtures::fixture_class_names` holding
the Hash of `"fixture_name" => FixtureModelClass` (i would also propose
to rename). Currently `TestFixtures::fixture_table_names` holds an
A...
2006 Jul 29
1
Anything wrong with this test? Cannot access fixture
Hi,
I have problem accessing the testfixture. The values from the
YML-Fixture-File are correctly written into database, but accessing the
fixture is impossible. It is always nil.
Is anything wrong with this test?
class MyModelTest < Test::Unit::TestCase
fixtures :my_model
def test_simple
a = MyModel.find(@my_model["first...