So I finally got a start on figuring out why tests were failing. It
looks like none of the tests have been updated since the "blogs"
table was added, as I keep getting this error on the tests
2) Error:
test_just_published_flag(ArticleTest):
ActiveRecord::RecordInvalid: Validation failed: Blog can't be blank
/home/mattrose/typotest/typo.sqlite/config/../vendor/rails/
activerecord/lib/active_record/validations.rb:736:in `save!'
/home/mattrose/typotest/typo.sqlite/config/../vendor/rails/
activerecord/lib/active_record/validations.rb:699:in `create!'
article_test.rb:144:in `test_just_published_flag'
and everytime I add the "blog_id" to the the article that gets
created in the test (I'm running through article tests right now) the
test passes.
However, this doesn't really jibe with what everyone else is saying
on the list, as those tests shouldn't be passing for anyone.
Matt
On 21-Jun-06, at 2:11 AM, Piers Cawley wrote:
> Matt Rose <[EMAIL PROTECTED]> writes:
>
>> So I've been looking into the built in unit tests in typo, and I
>> figured
>> out how to run them.
>
> Umm... have you run 'rake migrate'? ISTR that the schema in the trunk
> doesn't exactly tally with the migrations. Which could explain your
> failures.
>
> --
> Piers Cawley <[EMAIL PROTECTED]>
> http://www.bofh.org.uk/
> _______________________________________________
> Typo-list mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/typo-list
_______________________________________________
Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list