Sorry guys but I have to ask this as I’m completely stumped.
I have a table like so
| id |
| type |
| _name |
And my relevant unit test portion (setup works fine):
assert_equal 1, @part_type.id # works fine
assert_equal “Person”, @party_type._name # works as well
assert_equal “Person”, @party_type.type # bombs
I get the following messages:
Finished in 0.279416 seconds.
<“Person”> expected but was
1 tests, 2 assertions, 1 failures, 0 errors
For the life of me, I can’t get ‘type’ to be recognized. I’ve tried
an alias, defining another method to return the ‘type’ attribute/col;
all to no avail. Anyone have any suggestions for this? Tia.