[Rails] Fixture hash not available on the console in test env?

2009-01-09 Thread Tyler Arrigoni
While the generated id certainly works well for tests, it was previously easier when loading the test console and interacting with your model relationships. Is there an expectation to make the fixture hashes available on the test console? Currently running 2.2.2. -- Posted via http://www.ruby-f

[Rails] Re: Fixture hash not available on the console in test env?

2009-02-25 Thread Tyler Arrigoni
John Barnette wrote: > You can write this pretty easily yourself using Fixtures.identify: > > $ script/console > > >> require "active_record/fixtures" > >> def fixture klass, name; klass.find Fixtures.identify(name) end > >> fixture User, "bob" > > > ~ j. Indeed. Nice. -- Posted via http: