[Radiant] Generated behavior tests
James MacAulay
jmacaulay at gmail.com
Tue Aug 1 14:33:13 CDT 2006
When I use script/generate to make a behavior, the default test fails
right out of the box. It doesn't seem to like the use of
'behavior_id' on Page, and I don't really understand why. I'm working
off of the svn trunk, with revision 87. Any thoughts as to why this
is happening? Is it only me? I've made some changes to my
istallation, but none that I would expect could affect something like
this.
James
Here's what it shows me exactly:
jmacaulay at ubuntu1:/var/www/home$ script/generate behavior blah
exists app/behaviors/
exists test/unit/behaviors/
create app/behaviors/blah_behavior.rb
create test/unit/behaviors/blah_behavior_test.rb
jmacaulay at ubuntu1:/var/www/home$ ruby test/unit/behaviors/
blah_behavior_test.rb
Loaded suite test/unit/behaviors/blah_behavior_test
Started
E
Finished in 0.046515 seconds.
1) Error:
test_title_tag(BlahBehaviorTest):
NoMethodError: undefined method `behavior_id=' for #<Page:0xb73d34c8>
/var/www/home/test/../config/../vendor/rails/activerecord/lib/
active_record/base.rb:1789:in `method_missing'
test/unit/behaviors/blah_behavior_test.rb:8:in
`setup_without_fixtures'
/var/www/home/test/../config/../vendor/rails/activerecord/lib/
active_record/fixtures.rb:548:in `setup'
1 tests, 0 assertions, 0 failures, 1 errors
jmacaulay at ubuntu1:/var/www/home$
More information about the Radiant
mailing list