search for: a_person

Displaying 1 result from an estimated 1 matches for "a_person".

2007 Jun 25
0
Problem with RSpec in legacy databases
...e fixture file (tbl_people.yml) ---------------------------------- one: id: 1 name: John and the spec file (person_spec.rb) ---------------------------------- describe Person, "in general" do set_fixture_class :tbl_people => Person fixtures :tbl_people before(:each) do @a_person = tbl_people(:one) end it "" do @a_person.should be_valid end end Fixture data is loaded in the test database, I can get to it with a find method, but I canĀ“t get to it directly through the fixture method. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~-...