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:

[EMAIL PROTECTED]:/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
[EMAIL PROTECTED]:/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
[EMAIL PROTECTED]:/var/www/home$

_______________________________________________
Radiant mailing list
[email protected]
http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to