Displaying 1 result from an estimated 1 matches for "tbl_people".
2007 Jun 25
0
Problem with RSpec in legacy databases
...ture in Test::Unit, I
will use the method set_fixture_class before loading fixtures, and I
will get to the data in the fixture without problems.
But this doesn´t seem to work in RSpec.
Anybody knows how to use it?
This is a sample of the code
The model
---------
class Person
set_table_name = tbl_people
...
end
the 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(:...