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.
- Error:
test_title_tag(BlahBehaviorTest):
NoMethodError: undefined methodbehavior_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$